aboutsummaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-26 18:54:24 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2005-10-26 18:54:24 +0000
commit1168964aa44ffe50af7f08aaae9fc1bbc90e7784 (patch)
treec0ffbb2fbd1dd819c7587a31da636ca6f4ae71c0 /config.c
parentdb653f9eb1553a706ec819af67d84e261df14a26 (diff)
change ast_strlen_zero to also check for the string to be defined
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6862 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'config.c')
-rwxr-xr-xconfig.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.c b/config.c
index 3fbc18082..e585cb13e 100755
--- a/config.c
+++ b/config.c
@@ -631,11 +631,12 @@ static struct ast_config *config_text_file_load(const char *database, const char
}
if (process_buf) {
char *buf = ast_strip(process_buf);
- if (!ast_strlen_zero(buf))
+ if (!ast_strlen_zero(buf)) {
if (process_text_line(cfg, &cat, buf, lineno, filename)) {
cfg = NULL;
break;
}
+ }
}
}
}