From afb9921d38204704097d954e6649a96b8205d093 Mon Sep 17 00:00:00 2001 From: david gauchard Date: Sat, 14 Mar 2020 15:34:04 +0100 Subject: [PATCH] avoid printing nullptr string (#7144) --- libraries/esp8266/examples/NTP-TZ-DST/NTP-TZ-DST.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/esp8266/examples/NTP-TZ-DST/NTP-TZ-DST.ino b/libraries/esp8266/examples/NTP-TZ-DST/NTP-TZ-DST.ino index 33cd14603..3a16efb61 100644 --- a/libraries/esp8266/examples/NTP-TZ-DST/NTP-TZ-DST.ino +++ b/libraries/esp8266/examples/NTP-TZ-DST/NTP-TZ-DST.ino @@ -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: ");