From: Hannes Gredler Date: Sun, 18 May 2008 18:13:06 +0000 (+0200) Subject: no need for an extra memset for timers, since olar_malloc calls into calloc() X-Git-Tag: OLSRD_0_5_6_RC4~12 X-Git-Url: http://olsr.org/git/?p=olsrd.git;a=commitdiff_plain;h=0e97ef0c1c6404a39c25b14174bdae11a6f5a285 no need for an extra memset for timers, since olar_malloc calls into calloc() --- diff --git a/src/scheduler.c b/src/scheduler.c index 7fbd946c..5d83bfd5 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -254,7 +254,6 @@ olsr_get_timer(void) timer_block = olsr_malloc(sizeof(struct timer_entry) * OLSR_TIMER_MEMORY_CHUNK, "timer chunk"); - memset(timer_block, 0, sizeof(struct timer_entry) * OLSR_TIMER_MEMORY_CHUNK); #if 0 OLSR_PRINTF(3, "TIMER: alloc %u bytes chunk at %p\n",