X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=lib%2Fsilccore%2Fsilcbuffer.c;h=fc2b6b4037a3cf1c67c37f4837c2ebbe26adff0a;hp=662cf31e4643f2e34284b7ce822549be75703942;hb=a24dcffe20a3f0059fb58619b57b488d2bfae5ad;hpb=3464b5361b0d36180cb72996e30b2bfc754b28d4 diff --git a/lib/silccore/silcbuffer.c b/lib/silccore/silcbuffer.c index 662cf31e..fc2b6b40 100644 --- a/lib/silccore/silcbuffer.c +++ b/lib/silccore/silcbuffer.c @@ -20,8 +20,11 @@ /* * $Id$ * $Log$ - * Revision 1.1 2000/06/27 11:36:55 priikone - * Initial revision + * Revision 1.2 2000/07/05 06:06:35 priikone + * Global cosmetic change. + * + * Revision 1.1.1.1 2000/06/27 11:36:55 priikone + * Imported from internal CVS/Added Log headers. * * */ @@ -88,13 +91,9 @@ SilcBuffer silc_buffer_alloc(unsigned int len) /* Allocate new SilcBuffer */ sb = silc_calloc(1, sizeof(*sb)); - if (!sb) - return NULL; /* Allocate the actual data area */ - data = silc_malloc(len); - if (!data) - return NULL; + data = silc_calloc(len, sizeof(*data)); memset(data, 0, len); /* Set pointers to the new buffer */