Skip to content

Commit

Permalink
ESP8266: Fix accessing uninitialized variable
Browse files Browse the repository at this point in the history
  • Loading branch information
szsam authored Mar 8, 2024
1 parent baf6a30 commit c7ea9c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c7ea9c1

Please sign in to comment.