route.c: fix compiler warning
authorOvidiu Sas <osas@voipembedded.com>
Mon, 4 Oct 2010 21:41:45 +0000 (17:41 -0400)
committerOvidiu Sas <osas@voipembedded.com>
Mon, 4 Oct 2010 21:41:45 +0000 (17:41 -0400)
 - initialize he to NULL
 - use 'NULL' instead of '0' to initialize pointers

route.c

diff --git a/route.c b/route.c
index 45de184..ebb2077 100644 (file)
--- 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){