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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user