change ast_strlen_zero to also check for the string to be defined
[asterisk/asterisk.git] / config.c
index 3fbc180..e585cb1 100755 (executable)
--- 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;
                                                }
+                                       }
                                }
                        }
                }