From 308d9e4ddb0f98bd3653e7f8255517f74cdf4dfc Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Mon, 24 Dec 2018 16:27:28 +0100 Subject: [PATCH] ublox: fix band setting operation If both UBANDSEL and UACT are unsupported, we were not initializing the command variable. --- plugins/ublox/mm-broadband-modem-ublox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ublox/mm-broadband-modem-ublox.c b/plugins/ublox/mm-broadband-modem-ublox.c index 16836bcf..a51db02c 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);