Handle empty topic range lists

This commit is contained in:
Denis Kenzior 2009-09-09 21:25:03 -05:00 committed by Denis Kenzior
parent c559aa42f6
commit 2ade0f6b05
1 changed files with 3 additions and 0 deletions

View File

@ -3627,6 +3627,9 @@ char *cbs_topic_ranges_to_string(GSList *ranges)
GSList *l;
char *ret;
if (ranges == NULL)
return g_new0(char, 1);
for (l = ranges; l; l = l->next) {
range = l->data;