summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-04-26 20:39:55 +0000
committerStef Walter <stef@memberwebs.com>2004-04-26 20:39:55 +0000
commit8368de7830f336533f9fe6369641070239bf739c (patch)
tree5ad9641a6254c1c3a9e33750fdfb37ac7fbb7583 /common
parent627c573af25b602ac64c36b01c8163c592cbb494 (diff)
More debugging fixes.
Diffstat (limited to 'common')
-rw-r--r--common/buffer.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/buffer.c b/common/buffer.c
index 0cb045c..57d20e2 100644
--- a/common/buffer.c
+++ b/common/buffer.c
@@ -561,7 +561,7 @@ void* ha_bufdec64(ha_buffer_t* buf, const char* src, size_t* bytes)
buffer_bump(buf, 4);
if(ha_buferr(buf))
- return;
+ return NULL;
switch(state)
{
@@ -691,13 +691,13 @@ void* ha_bufdechex(ha_buffer_t* buf, const char* src, size_t* bytes)
src++;
}
+ /* We always null terminate anyway */
+ *(buf->_rp++) = 0;
+
/* All bytes have to come in pairs */
if(state != 0)
return NULL;
- /* We always null terminate anyway */
- *(buf->_rp++) = 0;
-
if(bytes)
*bytes = done;