Module: sip-router Branch: master Commit: 9306b90693babab7f49966d65314e114aefbbd66 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9306b906...
Author: Ovidiu Sas osas@voipembedded.com Committer: Ovidiu Sas osas@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){