From 20b8d7931894a648114142e48b3a108135520a87 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Wed, 15 Sep 2021 13:56:16 +0200 Subject: [PATCH] novatel: avoid returning a NULL timezone without error set Reported and fix suggested by: Frederic Martinsons Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/438 --- plugins/novatel/mm-broadband-modem-novatel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/novatel/mm-broadband-modem-novatel.c b/plugins/novatel/mm-broadband-modem-novatel.c index 1cc3d00f..8c115ee8 100644 --- a/plugins/novatel/mm-broadband-modem-novatel.c +++ b/plugins/novatel/mm-broadband-modem-novatel.c @@ -1495,7 +1495,7 @@ modem_time_load_network_timezone_finish (MMIfaceModemTime *self, const gchar *response; MMNetworkTimezone *tz = NULL; - response = mm_base_modem_at_command_finish (MM_BASE_MODEM (self), res, NULL); + response = mm_base_modem_at_command_finish (MM_BASE_MODEM (self), res, error); if (response) parse_nwltime_reply (response, NULL, &tz, error); return tz;