dect
/
asterisk
Archived
13
0
Fork 0

Merged revisions 318057 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r318057 | russell | 2011-05-07 18:35:37 -0500 (Sat, 07 May 2011) | 8 lines
  
  res_config_curl: fix a crash with static realtime.
  
  (closes issue #18413)
  Reported by: jmls
  Patches:
        20101202__issue18413.diff.txt uploaded by tilghman (license 14)
  Tested by: jmls
........


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@318058 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
russell 2011-05-07 23:36:41 +00:00
parent 6ba8a7efc9
commit caab296fd8
1 changed files with 1 additions and 1 deletions

View File

@ -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;