summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2021-09-15 13:56:16 +0200
committerAleksander Morgado <aleksander@aleksander.es>2021-09-15 13:57:57 +0200
commit20b8d7931894a648114142e48b3a108135520a87 (patch)
treeb4fa09fde55949dc2066b7049a79957a81d003e2
parent986fbd5093725af782dbeed4ccae6cf82c022c9b (diff)
downloadModemManager-20b8d7931894a648114142e48b3a108135520a87.tar.gz
novatel: avoid returning a NULL timezone without error set
Reported and fix suggested by: Frederic Martinsons <frederic.martinsons@sigfox.com> Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/438
-rw-r--r--plugins/novatel/mm-broadband-modem-novatel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/novatel/mm-broadband-modem-novatel.c b/plugins/novatel/mm-broadband-modem-novatel.c
index 1cc3d00f7..8c115ee80 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;