abuf: no need to set buf[0] to '\0', calloc already did that
authorFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 26 Nov 2015 21:46:15 +0000 (22:46 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Thu, 2 Jun 2016 21:41:09 +0000 (23:41 +0200)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/common/autobuf.c

index 372cf92..2ecf825 100644 (file)
@@ -81,7 +81,6 @@ int abuf_init(struct autobuf *autobuf, int initial_size) {
     autobuf->size = 0;
     return -1;
   }
-  *autobuf->buf = '\0';
   return 0;
 }