Skip to content

Commit 5fb7ca3

Browse files
committed
copied from https://salsa.debian.org/science-team/euslisp/-/tree/master/debian/patches?ref_type=heads: On arm32, localtime_r in LOCALTIME in unixcall.c returns NULL in some situation.
1 parent bf4cc17 commit 5fb7ca3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lisp/c/unixcall.c

+1
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ pointer argv[];
142142
if (n==1) clock=coerceintval(argv[0]);
143143
else clock=time(0);
144144
tms=localtime_r((time_t *)&clock,&res); /* localtime-->localtime_r */
145+
if (tms == NULL) tms = &res;
145146
timevec=makevector(C_VECTOR,10);
146147
vpush(timevec);
147148

0 commit comments

Comments
 (0)