Page MenuHomeFreeBSD

D9534.diff
No OneTemporary

D9534.diff

Index: head/contrib/tzcode/stdtime/localtime.c
===================================================================
--- head/contrib/tzcode/stdtime/localtime.c
+++ head/contrib/tzcode/stdtime/localtime.c
@@ -1453,14 +1453,13 @@
}
_RWLOCK_RDLOCK(&lcl_rwlock);
tzset_basic(1);
- localsub(timep, 0L, p_tm);
+ p_tm = localsub(timep, 0L, p_tm);
_RWLOCK_UNLOCK(&lcl_rwlock);
- return(p_tm);
} else {
tzset_basic(0);
- localsub(timep, 0L, &tm);
- return(&tm);
+ p_tm = localsub(timep, 0L, &tm);
}
+ return(p_tm);
}
/*
@@ -1472,7 +1471,7 @@
{
_RWLOCK_RDLOCK(&lcl_rwlock);
tzset_basic(1);
- localsub(timep, 0L, tmp);
+ tmp = localsub(timep, 0L, tmp);
_RWLOCK_UNLOCK(&lcl_rwlock);
return tmp;
}

File Metadata

Mime Type
text/plain
Expires
Thu, Apr 23, 5:38 PM (14 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32036264
Default Alt Text
D9534.diff (723 B)

Event Timeline