summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2018-12-24 16:27:28 +0100
committerAleksander Morgado <aleksander@aleksander.es>2019-01-30 12:10:03 +0100
commit308d9e4ddb0f98bd3653e7f8255517f74cdf4dfc (patch)
treec6f1636962106cc227b69f310b61828f9288bca5
parent2677524f6a7bbe9dab3cef106857491e5f65059e (diff)
downloadModemManager-308d9e4ddb0f98bd3653e7f8255517f74cdf4dfc.tar.gz
ublox: fix band setting operation
If both UBANDSEL and UACT are unsupported, we were not initializing the command variable.
-rw-r--r--plugins/ublox/mm-broadband-modem-ublox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ublox/mm-broadband-modem-ublox.c b/plugins/ublox/mm-broadband-modem-ublox.c
index 16836bcf8..a51db02c8 100644
--- a/plugins/ublox/mm-broadband-modem-ublox.c
+++ b/plugins/ublox/mm-broadband-modem-ublox.c
@@ -589,7 +589,7 @@ set_current_bands (MMIfaceModem *_self,
MMBroadbandModemUblox *self = MM_BROADBAND_MODEM_UBLOX (_self);
GTask *task;
GError *error = NULL;
- gchar *command;
+ gchar *command = NULL;
const gchar *model;
preload_support_config (self);