diff options
author | Michael Adam <obnox@samba.org> | 2009-08-04 14:49:09 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-08-04 23:47:27 +0200 |
commit | 88dbe04c818633bff3f2f8ca5cd3b99545c2e056 (patch) | |
tree | e0e9f98a3cd61d4c47859d8f6ad90ded743fde48 | |
parent | f5c80119ca090a9238c68feea616f6227e0b9f65 (diff) |
buffer: untangle assignment and check.
Michael
-rw-r--r-- | src/buffer.c | 3 |
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; /* |