From: Pekka Riikonen Date: Wed, 1 Nov 2000 21:43:44 +0000 (+0000) Subject: removed memset not needed X-Git-Tag: SILC.0.1~337 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=a998ac107c2bb107764c1c495bd9028e03bfcc37 removed memset not needed --- 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;