Skip to content

Commit a6daf69

Browse files
authored
Update src/nuklear_buffer.c
Just a "Commit suggestion" is fine 😉
1 parent d02f6cb commit a6daf69

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/nuklear_buffer.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ nk_buffer_realloc(struct nk_buffer *b, nk_size capacity, nk_size *size)
118118
/* HACK: this simulates realloc with malloc+memcpy+free
119119
* for backwards compatibility reasons, see the note in nk_malloc */
120120
temp = b->pool.alloc(b->pool.userdata, 0, capacity);
121+
NK_ASSERT(temp);
121122
if (!temp) return 0;
122123
*size = capacity;
123124
NK_MEMCPY(temp, b->memory.ptr, buffer_size);

0 commit comments

Comments
 (0)