mirror of git://git.sysmocom.de/ofono
stkutil: Allocate for empty string in text dataobj
This commit is contained in:
parent
fe57277233
commit
2411a506e3
|
@ -565,7 +565,7 @@ static gboolean parse_dataobj_text(struct comprehension_tlv_iter *iter,
|
|||
const unsigned char *data;
|
||||
char *utf8;
|
||||
|
||||
if (len == 0) {
|
||||
if (len <= 1) {
|
||||
*text = g_try_malloc0(1);
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue