OSDN Git Service

Apply a trivial patch that doesn't change anything, but which is alledged to
authorEric Andersen <andersen@codepoet.org>
Wed, 8 Oct 2003 18:27:19 +0000 (18:27 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 8 Oct 2003 18:27:19 +0000 (18:27 -0000)
workaround a toolchain specifi bug for the e1.

libc/misc/time/time.c

index 9bc8bc4..e2dadc2 100644 (file)
@@ -1698,13 +1698,13 @@ void tzset(void)
 #ifdef __UCLIBC_HAS_TZ_CACHING__
                *oldval = 0;                    /* Set oldval to an empty string. */
 #endif /* __UCLIBC_HAS_TZ_CACHING__ */
+               _time_tzinfo[0].gmt_offset = 0L;
                s = _time_tzinfo[0].tzname;
                *s = 'U';
                *++s = 'T';
                *++s = 'C';
                *++s =
                *_time_tzinfo[1].tzname = 0;
-               _time_tzinfo[0].gmt_offset = 0;
                goto DONE;
        }