]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Remove an unneeded variable. This compiled, but I missed the uninitialized warning
authorRussell Bryant <russell@russellbryant.com>
Wed, 19 Mar 2008 15:22:13 +0000 (15:22 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 19 Mar 2008 15:22:13 +0000 (15:22 +0000)
because I always compile without optimizations turned on.  Sorry!

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109907 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/pbx.c

index dfdec9022d94b7345a061cce81b8c31e37378e88..9cffae8ef675b27751f1d41911e46f60b98028e0 100644 (file)
@@ -3206,7 +3206,7 @@ static int ast_remove_hint(struct ast_exten *e)
 {
        /* Cleanup the Notifys if hint is removed */
        struct ast_hint *hint;
-       struct ast_state_cb *cblist, *cbprev;
+       struct ast_state_cb *cblist;
        int res = -1;
 
        if (!e)
@@ -3219,7 +3219,7 @@ static int ast_remove_hint(struct ast_exten *e)
                while ((cblist = AST_LIST_REMOVE_HEAD(&hint->callbacks, entry))) {
                        /* Notify with -1 and remove all callbacks */
                        cblist->callback(hint->exten->parent->name, hint->exten->exten, 
-                               AST_EXTENSION_DEACTIVATED, cbprev->data);
+                               AST_EXTENSION_DEACTIVATED, cblist->data);
                        ast_free(cblist);
                }