1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 14:00:21 +02:00

(scm_mktime): Use scm_frame_critical_section instead of

SCM_CRITICAL_SECTION_START/END since the code inside the critical
section might exit non-locally.
This commit is contained in:
Marius Vollmer 2005-11-06 22:12:04 +00:00
parent 914da0e2fc
commit 9291479faa

View file

@ -532,7 +532,8 @@ SCM_DEFINE (scm_mktime, "mktime", 1, 1, 0,
scm_frame_free ((char *)lt.tm_zone);
#endif
SCM_CRITICAL_SECTION_START;
scm_frame_critical_section (SCM_BOOL_F);
oldenv = setzone (zone, SCM_ARG2, FUNC_NAME);
#ifdef LOCALTIME_CACHE
tzset ();
@ -585,7 +586,6 @@ SCM_DEFINE (scm_mktime, "mktime", 1, 1, 0,
result = scm_cons (scm_from_long (itime),
filltime (&lt, zoff, zname));
SCM_CRITICAL_SECTION_END;
if (zname)
free (zname);