diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/cinterion/mm-plugin-cinterion.c | 2 | ||||
-rw-r--r-- | src/plugins/dell/mm-plugin-dell.c | 2 | ||||
-rw-r--r-- | src/plugins/huawei/mm-plugin-huawei.c | 2 | ||||
-rw-r--r-- | src/plugins/longcheer/mm-plugin-longcheer.c | 2 | ||||
-rw-r--r-- | src/plugins/novatel/mm-common-novatel.c | 3 | ||||
-rw-r--r-- | src/plugins/sierra/mm-common-sierra.c | 2 | ||||
-rw-r--r-- | src/plugins/telit/mm-common-telit.c | 2 | ||||
-rw-r--r-- | src/plugins/ublox/mm-plugin-ublox.c | 3 | ||||
-rw-r--r-- | src/plugins/x22x/mm-plugin-x22x.c | 8 |
9 files changed, 14 insertions, 12 deletions
diff --git a/src/plugins/cinterion/mm-plugin-cinterion.c b/src/plugins/cinterion/mm-plugin-cinterion.c index 7ec7838b..f1b581f1 100644 --- a/src/plugins/cinterion/mm-plugin-cinterion.c +++ b/src/plugins/cinterion/mm-plugin-cinterion.c @@ -80,7 +80,7 @@ sqport_ready (MMPortSerialAt *port, GTask *task) { MMPortProbe *probe; - const gchar *response; + g_autofree gchar *response = NULL; probe = g_task_get_source_object (task); diff --git a/src/plugins/dell/mm-plugin-dell.c b/src/plugins/dell/mm-plugin-dell.c index 47b2a69b..e7f813b1 100644 --- a/src/plugins/dell/mm-plugin-dell.c +++ b/src/plugins/dell/mm-plugin-dell.c @@ -158,7 +158,7 @@ response_ready (MMPortSerialAt *port, { CustomInitContext *ctx; MMPortProbe *probe; - const gchar *response; + g_autofree gchar *response = NULL; GError *error = NULL; gchar *lower; DellManufacturer manufacturer; diff --git a/src/plugins/huawei/mm-plugin-huawei.c b/src/plugins/huawei/mm-plugin-huawei.c index 89897e9e..b0b7a616 100644 --- a/src/plugins/huawei/mm-plugin-huawei.c +++ b/src/plugins/huawei/mm-plugin-huawei.c @@ -104,7 +104,7 @@ getportmode_ready (MMPortSerialAt *port, MMDevice *device; MMPortProbe *probe; HuaweiCustomInitContext *ctx; - const gchar *response; + g_autofree gchar *response = NULL; GArray *modes; g_autoptr(GError) error = NULL; diff --git a/src/plugins/longcheer/mm-plugin-longcheer.c b/src/plugins/longcheer/mm-plugin-longcheer.c index f3c6bc6c..a53e6d03 100644 --- a/src/plugins/longcheer/mm-plugin-longcheer.c +++ b/src/plugins/longcheer/mm-plugin-longcheer.c @@ -61,7 +61,7 @@ gmr_ready (MMPortSerialAt *port, { MMPortProbe *probe; const gchar *p; - const gchar *response; + g_autofree gchar *response = NULL; probe = g_task_get_source_object (task); diff --git a/src/plugins/novatel/mm-common-novatel.c b/src/plugins/novatel/mm-common-novatel.c index b6b0e272..2e0d3da3 100644 --- a/src/plugins/novatel/mm-common-novatel.c +++ b/src/plugins/novatel/mm-common-novatel.c @@ -49,10 +49,11 @@ nwdmat_ready (MMPortSerialAt *port, { g_autoptr(GError) error = NULL; MMPortProbe *probe; + g_autofree gchar *response = NULL; probe = g_task_get_source_object (task); - mm_port_serial_at_command_finish (port, res, &error); + response = mm_port_serial_at_command_finish (port, res, &error); if (error) { if (g_error_matches (error, MM_SERIAL_ERROR, MM_SERIAL_ERROR_RESPONSE_TIMEOUT)) { custom_init_step (task); diff --git a/src/plugins/sierra/mm-common-sierra.c b/src/plugins/sierra/mm-common-sierra.c index 72cbc34f..06b889ee 100644 --- a/src/plugins/sierra/mm-common-sierra.c +++ b/src/plugins/sierra/mm-common-sierra.c @@ -105,7 +105,7 @@ gcap_ready (MMPortSerialAt *port, { MMPortProbe *probe; SierraCustomInitContext *ctx; - const gchar *response; + g_autofree gchar *response = NULL; GError *error = NULL; probe = g_task_get_source_object (task); diff --git a/src/plugins/telit/mm-common-telit.c b/src/plugins/telit/mm-common-telit.c index 66c82b9d..a401b1ae 100644 --- a/src/plugins/telit/mm-common-telit.c +++ b/src/plugins/telit/mm-common-telit.c @@ -185,7 +185,7 @@ getportcfg_ready (MMPortSerialAt *port, GAsyncResult *res, GTask *task) { - const gchar *response; + g_autofree gchar *response = NULL; GError *error = NULL; MMPortProbe *probe; TelitCustomInitContext *ctx; diff --git a/src/plugins/ublox/mm-plugin-ublox.c b/src/plugins/ublox/mm-plugin-ublox.c index e606eba1..c88369de 100644 --- a/src/plugins/ublox/mm-plugin-ublox.c +++ b/src/plugins/ublox/mm-plugin-ublox.c @@ -151,10 +151,11 @@ quick_at_ready (MMPortSerialAt *port, { MMPortProbe *probe; g_autoptr(GError) error = NULL; + g_autofree gchar *response = NULL; probe = g_task_get_source_object (task); - mm_port_serial_at_command_finish (port, res, &error); + response = mm_port_serial_at_command_finish (port, res, &error); if (error) { /* On a timeout error, wait for READY URC */ if (g_error_matches (error, MM_SERIAL_ERROR, MM_SERIAL_ERROR_RESPONSE_TIMEOUT)) { diff --git a/src/plugins/x22x/mm-plugin-x22x.c b/src/plugins/x22x/mm-plugin-x22x.c index ccfcd465..e68e6b24 100644 --- a/src/plugins/x22x/mm-plugin-x22x.c +++ b/src/plugins/x22x/mm-plugin-x22x.c @@ -63,10 +63,10 @@ gmr_ready (MMPortSerialAt *port, GAsyncResult *res, GTask *task) { - MMPortProbe *probe; - const gchar *p; - const gchar *response; - GError *error = NULL; + MMPortProbe *probe; + const gchar *p; + g_autofree gchar *response = NULL; + GError *error = NULL; probe = g_task_get_source_object (task); |