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

Message ID 20250105055750.1668721-41-eggert@cs.ucla.edu (mailing list archive)
State New
Headers
Series time: sync mktime from Gnulib |

Checks

Context Check Description
redhat-pt-bot/TryBot-apply_patch success Patch applied to master at the time it was sent

Commit Message

Paul Eggert Jan. 5, 2025, 5:57 a.m. UTC
  * time/tzfile.c (__tzfile_read): Improve comment about empty TZ strings.
---
 time/tzfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

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;
     }