Fixing a compiler warning which warns that a variable may be used unitialized. Thanks...
authorMark Michelson <mmichelson@digium.com>
Mon, 6 Aug 2007 17:51:09 +0000 (17:51 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 6 Aug 2007 17:51:09 +0000 (17:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@78192 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 6cc7cbb..f668170 100644 (file)
@@ -2938,7 +2938,7 @@ static void update_peer(struct sip_peer *p, int expiry)
 
 static struct ast_variable *get_insecure_variable_from_config(struct ast_config *config)
 {
-       struct ast_variable *var;
+       struct ast_variable *var = NULL;
        struct ast_flags flags = {0};
        char *cat = NULL;
        const char *insecure;