[PATCH 40/59] Improve __tzfile_read TZ="" comment

Paul Eggert eggert@cs.ucla.edu
Sun Jan 5 05:57:15 GMT 2025


* time/tzfile.c (__tzfile_read): Improve comment about empty TZ strings.
---
 time/tzfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/time/tzfile.c b/time/tzfile.c
index d600b88e89..3ca08d16d4 100644
--- a/time/tzfile.c
+++ b/time/tzfile.c
@@ -504,7 +504,7 @@ __tzfile_read (const char *file)
 	}
       tzspec[len] = '\0';
 
-      /* Don't use an empty TZ string.  */
+      /* An empty TZ string means to use the last transition's type.  */
       if (len == 0)
 	tzspec = NULL;
     }
-- 
2.45.2



More information about the Libc-alpha mailing list