From b5a9af880ffbdd5f310a2cd04c41cc86daac20cd Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Wed, 29 Oct 2025 16:31:30 +0100 Subject: time64: Assert if date is pointing to NULL Given the fact that timegm64 is only invoked with a valid pointer, this should never trigger. --- src/time64.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/time64.c b/src/time64.c index 07639df..cfbe7ac 100644 --- a/src/time64.c +++ b/src/time64.c @@ -224,6 +224,7 @@ Time64_T timegm64(const struct TM *date) { Time64_T days = 0; Time64_T seconds = 0; Year year; + assert(date != NULL); Year orig_year = (Year)date->tm_year; int cycles = 0; -- cgit v1.1-32-gdbae