summaryrefslogtreecommitdiff
path: root/src/utils/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/buffer.c')
-rw-r--r--src/utils/buffer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/utils/buffer.c b/src/utils/buffer.c
index a7ee7f4..fcaf5d5 100644
--- a/src/utils/buffer.c
+++ b/src/utils/buffer.c
@@ -168,11 +168,15 @@ parserutils_error parserutils_buffer_grow(parserutils_buffer *buffer)
parserutils_error parserutils_buffer_randomise(parserutils_buffer *buffer)
{
+#ifndef NDEBUG
+ uint8_t *temp;
+#endif
+
if (buffer == NULL)
return PARSERUTILS_BADPARM;
#ifndef NDEBUG
- uint8_t *temp = buffer->alloc(NULL, buffer->allocated, buffer->pw);
+ temp = buffer->alloc(NULL, buffer->allocated, buffer->pw);
if (temp == NULL)
return PARSERUTILS_NOMEM;