Ensure error variable is set to 0 or else we might get false error messages. (issue...
authorJoshua Colp <jcolp@digium.com>
Sat, 13 Jan 2007 03:37:10 +0000 (03:37 +0000)
committerJoshua Colp <jcolp@digium.com>
Sat, 13 Jan 2007 03:37:10 +0000 (03:37 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@50677 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 4d50044..ad6f7c9 100644 (file)
@@ -16458,7 +16458,7 @@ static int reload_config(enum channelreloadreason reason)
                        }
                } else if (!strcasecmp(v->name, "localnet")) {
                        struct ast_ha *na;
-                       int ha_error;
+                       int ha_error = 0;
 
                        if (!(na = ast_append_ha("d", v->value, localaddr, &ha_error)))
                                ast_log(LOG_WARNING, "Invalid localnet value: %s\n", v->value);