ESP8266: Fix accessing uninitialized variable

pull/15496/head
Mingjie Shen 2024-03-07 20:36:17 -05:00 committed by GitHub
parent baf6a3022a
commit c7ea9c1550
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1190,7 +1190,7 @@ bool ESP8266::get_sntp_config(bool *enable, int *timezone, char *server0,
&tmp, timezone, server0, server1, server2)
&& _parser.recv("OK\n");
_smutex.unlock();
*enable = tmp ? true : false;
*enable = (done && tmp) ? true : false;
return done;
}