Browse code

route.c: fix compiler warning

- initialize he to NULL
- use 'NULL' instead of '0' to initialize pointers

Ovidiu Sas authored on 04/10/2010 21:41:45
Showing 1 changed files
... ...
@@ -1607,10 +1607,11 @@ inline static int comp_ip(int op, struct ip_addr* ip, int rtype,
1607 1607
 	pv_value_t pval;
1608 1608
 	int destroy_pval;
1609 1609
 
1610
-	right=0; /* warning fix */
1611
-	rv=0;
1610
+	right=NULL; /* warning fix */
1611
+	rv=NULL;
1612 1612
 	destroy_pval=0;
1613 1613
 	ret=-1;
1614
+	he=NULL; /* warning fix */
1614 1615
 	switch(rtype){
1615 1616
 		case NET_ST:
1616 1617
 			switch(op){