diff options
-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; /* |