From 88dbe04c818633bff3f2f8ca5cd3b99545c2e056 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 4 Aug 2009 14:49:09 +0200 Subject: buffer: untangle assignment and check. Michael --- src/buffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; /* -- cgit v1.2.3