mirror of git://git.sysmocom.de/ofono
Handle empty topic range lists
This commit is contained in:
parent
c559aa42f6
commit
2ade0f6b05
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue