[tz] [PATCH 2/2] dumptime’s argument is always nonnull now

Paul Eggert eggert at cs.ucla.edu
Wed Jan 26 19:06:08 UTC 2022


* zdump.c (dumptime): Simplify.
---
 zdump.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/zdump.c b/zdump.c
index dc3dca8..2fee4d3 100644
--- a/zdump.c
+++ b/zdump.c
@@ -1194,10 +1194,6 @@ dumptime(register const struct tm *timeptr)
 	register int		lead;
 	register int		trail;
 
-	if (timeptr == NULL) {
-		printf("NULL");
-		return;
-	}
 	/*
 	** The packaged localtime_rz and gmtime_r never put out-of-range
 	** values in tm_wday or tm_mon, but since this code might be compiled
-- 
2.34.1




More information about the tz mailing list