mm-broadband-modem-qmi: avoid using NULL pointer coming from an empty GArray

This commit is contained in:
Aleksander Morgado
2014-10-29 22:35:52 +01:00
parent 3a76c0df57
commit 555ec15a16
+2 -1
View File
@@ -7776,7 +7776,8 @@ get_agps_config_ready (QmiClientPds *client,
qmi_message_pds_get_agps_config_output_get_location_server_url (
output,
&url,
NULL)) {
NULL) &&
url->len > 0) {
str = g_convert (url->data, url->len, "UTF-8", "UTF-16BE", NULL, NULL, NULL);
}