diff options
author | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-10 07:13:23 +0000 |
---|---|---|
committer | rizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-10 07:13:23 +0000 |
commit | be88618acdc787150560d8f87093d8d4fead549a (patch) | |
tree | 186cf5494b27ec73f35cac995d3eb182a396d05f /pbx.c | |
parent | 51dbdd60d4f877a8c08d19b44cc2e9c08e01834c (diff) |
prevent a warning for uninitialized variable.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26281 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx.c')
-rw-r--r-- | pbx.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 */ |