no need for an extra memset for timers, since olar_malloc calls into calloc()
authorHannes Gredler <hannes@gredler.at>
Sun, 18 May 2008 18:13:06 +0000 (20:13 +0200)
committerHannes Gredler <hannes@gredler.at>
Sun, 18 May 2008 18:13:06 +0000 (20:13 +0200)
src/scheduler.c

index 7fbd946..5d83bfd 100644 (file)
@@ -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",