From a998ac107c2bb107764c1c495bd9028e03bfcc37 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Wed, 1 Nov 2000 21:43:44 +0000 Subject: [PATCH] removed memset not needed --- lib/silcutil/silcbuffer.c | 4 +++- lib/silcutil/silcbuffer.h | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/silcutil/silcbuffer.c b/lib/silcutil/silcbuffer.c index a9432a9f..1f9ba2fe 100644 --- a/lib/silcutil/silcbuffer.c +++ b/lib/silcutil/silcbuffer.c @@ -20,6 +20,9 @@ /* * $Id$ * $Log$ + * Revision 1.3 2000/11/01 21:43:44 priikone + * removed memset not needed + * * Revision 1.2 2000/10/31 19:48:32 priikone * A LOT updates. Cannot separate. :) * @@ -70,7 +73,6 @@ SilcBuffer silc_buffer_alloc(unsigned int len) /* Allocate the actual data area */ data = silc_calloc(len, sizeof(*data)); - memset(data, 0, len); /* Set pointers to the new buffer */ sb->truelen = len; diff --git a/lib/silcutil/silcbuffer.h b/lib/silcutil/silcbuffer.h index d32b046b..8658e608 100644 --- a/lib/silcutil/silcbuffer.h +++ b/lib/silcutil/silcbuffer.h @@ -144,7 +144,6 @@ SilcBuffer silc_buffer_alloc(unsigned int len) /* Allocate the actual data area */ data = silc_calloc(len, sizeof(*data)); - memset(data, 0, len); /* Set pointers to the new buffer */ sb->truelen = len; -- 2.24.0