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
This commit is contained in:
Aleksander Morgado
2021-09-15 13:57:57 +02:00
parent 986fbd5093
commit 20b8d79318
+1 -1
View File
@@ -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;