Commit 9d10e33
committed
avoid redundant tzset() calls
The tzset() function initializes the tzname variable from the
TZ environment variable.
There doesn't seem to be any valid usecase of calling this redundantly.
It is an overhead that can be avoided.
In both the occurances, locatime_r() is called right afterwards, which
is documented to also perform the tzset()'s side effects.1 parent 529a594 commit 9d10e33
1 file changed
+0
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1626 | 1626 | | |
1627 | 1627 | | |
1628 | 1628 | | |
1629 | | - | |
1630 | | - | |
1631 | | - | |
1632 | 1629 | | |
1633 | 1630 | | |
1634 | 1631 | | |
| |||
1776 | 1773 | | |
1777 | 1774 | | |
1778 | 1775 | | |
1779 | | - | |
1780 | | - | |
1781 | | - | |
1782 | 1776 | | |
1783 | 1777 | | |
1784 | 1778 | | |
| |||
0 commit comments