diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/res_config_curl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_config_curl.c b/res/res_config_curl.c index f80998e36..8488d9bdc 100644 --- a/res/res_config_curl.c +++ b/res/res_config_curl.c @@ -575,7 +575,7 @@ static struct ast_config *config_curl(const char *url, const char *unused, const return NULL; } - if (strcmp(category, cur_cat) || last_cat_metric != cat_metric) { + if (!cat || strcmp(category, cur_cat) || last_cat_metric != cat_metric) { if (!(cat = ast_category_new(category, "", 99999))) break; cur_cat = category; |