Skip to content

Commit

Permalink
Merge pull request #15496 from szsam/patch-1
Browse files Browse the repository at this point in the history
ESP8266: Fix accessing uninitialized variable
  • Loading branch information
0xc0170 authored May 3, 2024
2 parents 1060154 + c7ea9c1 commit 7e16b00
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 7e16b00

Please sign in to comment.