* lib/posixtm.c (posixtime): Fix operand argument to checked integer operation.
Signed-off-by: Khem Raj <raj.k...@gmail.com> --- ChangeLog | 5 +++++ lib/posixtm.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e42d2c31ab..daca27a917 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-01-15 Khem Raj <raj.k...@gmail.com> + + * lib/posixtm.c (posixtime): Fix operand argument to checked + integer operation. + 2024-01-07 Jim Meyering <meyer...@meta.com> update-copyright: handle more cases diff --git a/lib/posixtm.c b/lib/posixtm.c index ef9f55f873..23397a6672 100644 --- a/lib/posixtm.c +++ b/lib/posixtm.c @@ -159,7 +159,7 @@ bool posixtime (time_t *p, const char *s, unsigned int syntax_bits) { struct tm tm0; - bool leapsec = false; + int leapsec = 0; if (! posix_time_parse (&tm0, s, syntax_bits)) return false; -- 2.43.0