summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-08-04 14:49:09 +0200
committerMichael Adam <obnox@samba.org>2009-08-04 23:47:27 +0200
commit88dbe04c818633bff3f2f8ca5cd3b99545c2e056 (patch)
treee0e9f98a3cd61d4c47859d8f6ad90ded743fde48
parentf5c80119ca090a9238c68feea616f6227e0b9f65 (diff)
downloadtinyproxy-88dbe04c818633bff3f2f8ca5cd3b99545c2e056.tar.gz
tinyproxy-88dbe04c818633bff3f2f8ca5cd3b99545c2e056.zip
buffer: untangle assignment and check.
Michael
Diffstat (limited to '')
-rw-r--r--src/buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 8b2d33a..aa9ef84 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -113,7 +113,8 @@ new_buffer (void)
{
struct buffer_s *buffptr;
- if (!(buffptr = safemalloc (sizeof (struct buffer_s))))
+ buffptr = safemalloc (sizeof (struct buffer_s));
+ if (!buffptr)
return NULL;
/*