[Olsr-cvs] olsrd-current/src tc_set.c,1.31,1.32

Bernd Petrovitsch (spam-protected)
Wed Oct 17 09:30:37 CEST 2007


Update of /cvsroot/olsrd/olsrd-current/src
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10726/src

Modified Files:
	tc_set.c 
Log Message:
* Bug fix from Sven-Ola Tücke: initialize malloc()ed struct

Index: tc_set.c
===================================================================
RCS file: /cvsroot/olsrd/olsrd-current/src/tc_set.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** tc_set.c	16 Oct 2007 09:54:43 -0000	1.31
--- tc_set.c	17 Oct 2007 07:30:34 -0000	1.32
***************
*** 189,192 ****
--- 189,193 ----
      return NULL;
    }
+   memset(tc, 0, sizeof(struct tc_entry));
  
    /* Fill entry */





More information about the Olsr-cvs mailing list