We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d02f6cb commit a6daf69Copy full SHA for a6daf69
1 file changed
src/nuklear_buffer.c
@@ -118,6 +118,7 @@ nk_buffer_realloc(struct nk_buffer *b, nk_size capacity, nk_size *size)
118
/* HACK: this simulates realloc with malloc+memcpy+free
119
* for backwards compatibility reasons, see the note in nk_malloc */
120
temp = b->pool.alloc(b->pool.userdata, 0, capacity);
121
+ NK_ASSERT(temp);
122
if (!temp) return 0;
123
*size = capacity;
124
NK_MEMCPY(temp, b->memory.ptr, buffer_size);
0 commit comments