From 7360c1e898424e6ea77c389f584f85eb08c7c302 Mon Sep 17 00:00:00 2001 From: William King Date: Wed, 12 Jun 2013 21:21:38 -0700 Subject: [PATCH] This is probably what was intended. If the pointer 'path' is NULL, or if it is not NULL, then the first char should not be '\0' --- src/switch_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_config.c b/src/switch_config.c index 974cbf6107..0c7c385247 100644 --- a/src/switch_config.c +++ b/src/switch_config.c @@ -105,7 +105,7 @@ SWITCH_DECLARE(int) switch_config_next_pair(switch_config_t *cfg, char **var, ch *var = *val = NULL; - if (!cfg->path) { + if ( !cfg->path || (cfg->path && cfg->path[0] != '\0' )) { return 0; }