summaryrefslogtreecommitdiff
path: root/main/pbx.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2008-03-19 15:22:13 +0000
committerRussell Bryant <russell@russellbryant.com>2008-03-19 15:22:13 +0000
commit89ad4ace6757242fc073f51c24f84ce16c3618a4 (patch)
tree77cabb6c9649ea2a3ce9a21fd023fb563723fa80 /main/pbx.c
parentb47eee21877f73ef0cf4c1aaf5fd370312461275 (diff)
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
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/pbx.c b/main/pbx.c
index dfdec9022..9cffae8ef 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);
}