mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
prevent a warning for uninitialized variable.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26281 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
1
pbx.c
1
pbx.c
@@ -4346,6 +4346,7 @@ int ast_add_extension2(struct ast_context *con,
|
||||
tmp->registrar = registrar;
|
||||
|
||||
ast_mutex_lock(&con->lock);
|
||||
res = 0; /* some compilers will think it is uninitialized otherwise */
|
||||
for (e = con->root; e; el = e, e = e->next) { /* scan the extension list */
|
||||
res = ext_cmp(e->exten, extension);
|
||||
if (res == 0) { /* extension match, now look at cidmatch */
|
||||
|
||||
Reference in New Issue
Block a user