From 89ad4ace6757242fc073f51c24f84ce16c3618a4 Mon Sep 17 00:00:00 2001 From: Russell Bryant <russell@russellbryant.com> Date: Wed, 19 Mar 2008 15:22:13 +0000 Subject: [PATCH] Remove an unneeded variable. This compiled, but I missed the uninitialized warning 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/pbx.c b/main/pbx.c index dfdec9022d..9cffae8ef6 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -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); } -- GitLab