diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2016-08-29 12:57:42 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2016-08-29 12:57:42 +0200 |
commit | a309b4dd537eca51bc392facdf1a470d7ea32c80 (patch) | |
tree | 2647fbf521dffd9510492f766e6112efae66a91f | |
parent | 6528ba574333935bac64df06bd15482d519bd3fe (diff) | |
download | external_libqmi-a309b4dd537eca51bc392facdf1a470d7ea32c80.zip external_libqmi-a309b4dd537eca51bc392facdf1a470d7ea32c80.tar.gz external_libqmi-a309b4dd537eca51bc392facdf1a470d7ea32c80.tar.bz2 |
qmicli,dms: avoid pointer when reading enum array
-rw-r--r-- | src/qmicli/qmicli-dms.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qmicli/qmicli-dms.c b/src/qmicli/qmicli-dms.c index 1a5cdf7..12526a6 100644 --- a/src/qmicli/qmicli-dms.c +++ b/src/qmicli/qmicli-dms.c @@ -2834,12 +2834,12 @@ select_stored_image_ready (QmiClientDms *client, if (qmi_message_dms_set_firmware_preference_output_get_image_download_list (output, &array, &error)) { guint i; GString *images; - QmiDmsFirmwareImageType *type; + QmiDmsFirmwareImageType type; images = g_string_new (""); for (i = 0; i < array->len; i++) { - type = &g_array_index (array, QmiDmsFirmwareImageType, i); - g_string_append (images, qmi_dms_firmware_image_type_get_string (*type)); + type = g_array_index (array, QmiDmsFirmwareImageType, i); + g_string_append (images, qmi_dms_firmware_image_type_get_string (type)); if (i < array->len -1) g_string_append (images, ", "); } |