summaryrefslogtreecommitdiff
path: root/src/utils/buffer.c
diff options
context:
space:
mode:
authorFrançois Revel <mmu_man@netsurf-browser.org>2008-11-29 22:55:56 +0000
committerFrançois Revel <mmu_man@netsurf-browser.org>2008-11-29 22:55:56 +0000
commit50e64e8710e3af657ad97053e16435c284dc80e2 (patch)
treead2ce27279bcec54352257362197d5bc66cfb56b /src/utils/buffer.c
parentcfad5e411a897bd30bf9f6014e58a25f1ecb69da (diff)
downloadlibparserutils-50e64e8710e3af657ad97053e16435c284dc80e2.tar.gz
libparserutils-50e64e8710e3af657ad97053e16435c284dc80e2.tar.bz2
C89
svn path=/trunk/libparserutils/; revision=5838
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;