summaryrefslogtreecommitdiff
path: root/apps/app_directory.c
diff options
context:
space:
mode:
authorSean Bright <sean@malleable.com>2012-03-08 17:48:14 +0000
committerSean Bright <sean@malleable.com>2012-03-08 17:48:14 +0000
commit4657b016ad8250c999f3fad110edf0a1f8c74acd (patch)
tree87564937c2490e7222d357ada2f1381fcd1b1aad /apps/app_directory.c
parent99bd5b1e2e70160b2d3f6dcbd122b06654c17788 (diff)
Resolve a few more cases of variable shadowing.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@358691 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_directory.c')
-rw-r--r--apps/app_directory.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_directory.c b/apps/app_directory.c
index 52e8722c2..bbca1bf62 100644
--- a/apps/app_directory.c
+++ b/apps/app_directory.c
@@ -472,7 +472,7 @@ static struct ast_config *realtime_directory(char *context)
mailbox = NULL;
while ( (mailbox = ast_category_browse(rtdata, mailbox)) ) {
- const char *context = ast_variable_retrieve(rtdata, mailbox, "context");
+ const char *ctx = ast_variable_retrieve(rtdata, mailbox, "context");
fullname = ast_variable_retrieve(rtdata, mailbox, "fullname");
if (ast_true((hidefromdir = ast_variable_retrieve(rtdata, mailbox, "hidefromdir")))) {
@@ -482,8 +482,8 @@ static struct ast_config *realtime_directory(char *context)
snprintf(tmp, sizeof(tmp), "no-password,%s", S_OR(fullname, ""));
/* Does the context exist within the config file? If not, make one */
- if (!(cat = ast_category_get(cfg, context))) {
- if (!(cat = ast_category_new(context, "", 99999))) {
+ if (!(cat = ast_category_get(cfg, ctx))) {
+ if (!(cat = ast_category_new(ctx, "", 99999))) {
ast_log(LOG_WARNING, "Out of memory\n");
ast_config_destroy(cfg);
if (rtdata) {