[sr-dev] git:master: route.c: fix compiler warning

Ovidiu Sas osas at voipembedded.com
Mon Oct 4 23:30:14 CEST 2010


Module: sip-router
Branch: master
Commit: 9306b90693babab7f49966d65314e114aefbbd66
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9306b90693babab7f49966d65314e114aefbbd66

Author: Ovidiu Sas <osas at voipembedded.com>
Committer: Ovidiu Sas <osas at voipembedded.com>
Date:   Mon Oct  4 17:41:45 2010 -0400

route.c: fix compiler warning

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

---

 route.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/route.c b/route.c
index 45de184..ebb2077 100644
--- a/route.c
+++ b/route.c
@@ -1607,10 +1607,11 @@ inline static int comp_ip(int op, struct ip_addr* ip, int rtype,
 	pv_value_t pval;
 	int destroy_pval;
 
-	right=0; /* warning fix */
-	rv=0;
+	right=NULL; /* warning fix */
+	rv=NULL;
 	destroy_pval=0;
 	ret=-1;
+	he=NULL; /* warning fix */
 	switch(rtype){
 		case NET_ST:
 			switch(op){




More information about the sr-dev mailing list