diff options
-rw-r--r-- | src/util/u_dynarray.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/u_dynarray.h b/src/util/u_dynarray.h index e9109ccd2d1..fdcd09c4bef 100644 --- a/src/util/u_dynarray.h +++ b/src/util/u_dynarray.h @@ -107,7 +107,7 @@ util_dynarray_trim(struct util_dynarray *buf) if (buf->size != buf->capacity) { if (buf->size) { if (buf->mem_ctx) { - reralloc_size(buf->mem_ctx, buf->data, buf->size); + buf->data = reralloc_size(buf->mem_ctx, buf->data, buf->size); } else { buf->data = realloc(buf->data, buf->size); } |