summaryrefslogtreecommitdiff
path: root/pbx.c
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-05-10 07:13:23 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-05-10 07:13:23 +0000
commit0b3482cedcde642d562d7d4a01f38e791c65f942 (patch)
tree186cf5494b27ec73f35cac995d3eb182a396d05f /pbx.c
parent2d65bd68f1e545f92e45f16be5ed231f12f3a4d3 (diff)
prevent a warning for uninitialized variable.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26281 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rw-r--r--pbx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pbx.c b/pbx.c
index bdd62dd0e..0aaea68cc 100644
--- a/pbx.c
+++ b/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 */