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:
parent
914da0e2fc
commit
9291479faa
1 changed files with 2 additions and 2 deletions
|
@ -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 (<, zoff, zname));
|
||||
SCM_CRITICAL_SECTION_END;
|
||||
if (zname)
|
||||
free (zname);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue