mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 18:40:46 +00:00
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
This commit is contained in:
@@ -3206,7 +3206,7 @@ static int ast_remove_hint(struct ast_exten *e)
|
|||||||
{
|
{
|
||||||
/* Cleanup the Notifys if hint is removed */
|
/* Cleanup the Notifys if hint is removed */
|
||||||
struct ast_hint *hint;
|
struct ast_hint *hint;
|
||||||
struct ast_state_cb *cblist, *cbprev;
|
struct ast_state_cb *cblist;
|
||||||
int res = -1;
|
int res = -1;
|
||||||
|
|
||||||
if (!e)
|
if (!e)
|
||||||
@@ -3219,7 +3219,7 @@ static int ast_remove_hint(struct ast_exten *e)
|
|||||||
while ((cblist = AST_LIST_REMOVE_HEAD(&hint->callbacks, entry))) {
|
while ((cblist = AST_LIST_REMOVE_HEAD(&hint->callbacks, entry))) {
|
||||||
/* Notify with -1 and remove all callbacks */
|
/* Notify with -1 and remove all callbacks */
|
||||||
cblist->callback(hint->exten->parent->name, hint->exten->exten,
|
cblist->callback(hint->exten->parent->name, hint->exten->exten,
|
||||||
AST_EXTENSION_DEACTIVATED, cbprev->data);
|
AST_EXTENSION_DEACTIVATED, cblist->data);
|
||||||
ast_free(cblist);
|
ast_free(cblist);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user