ussd: ensure coded string is valid before stripping quotes

This commit is contained in:
Aleksander Morgado
2012-01-23 15:43:55 +01:00
parent 62e94727fe
commit 83b92ecebc

View File

@@ -5346,6 +5346,9 @@ decode_ussd_response (MMGenericGsm *self,
}
}
if (!str)
return NULL;
/* Strip quotes */
if (str[0] == '"')
str++;
@@ -6709,4 +6712,3 @@ mm_generic_gsm_class_init (MMGenericGsmClass *klass)
"+CMER=3,0,0,1",
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
}