mirror of git://git.sysmocom.de/ofono
Fix: Don't return NULL if message is empty
Empty SMS messages are in sms_decode_text are returned as NULL, e.g. error. This shouldn't be the case, empty messages should be reported and signaled.
This commit is contained in:
parent
281065e249
commit
eb2c60469c
|
@ -2190,11 +2190,6 @@ char *sms_decode_text(GSList *sms_list)
|
||||||
|
|
||||||
utf8 = g_string_free(str, FALSE);
|
utf8 = g_string_free(str, FALSE);
|
||||||
|
|
||||||
if (strlen(utf8) == 0) {
|
|
||||||
g_free(utf8);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
return utf8;
|
return utf8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue