Skip to content

Commit

Permalink
avoid printing nullptr string (#7144)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-a-v authored Mar 14, 2020
1 parent 845241b commit afb9921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/esp8266/examples/NTP-TZ-DST/NTP-TZ-DST.ino
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void showTime() {
Serial.println((uint32_t)now);

// timezone and demo in the future
Serial.printf("timezone: %s\n", getenv("TZ"));
Serial.printf("timezone: %s\n", getenv("TZ") ? : "(none)");

// human readable
Serial.print("ctime: ");
Expand Down

0 comments on commit afb9921

Please sign in to comment.