tzset_r.c (_tzname): Add a comma. [PATCH]
jjohnstn
jjohnstn@redhat.com
Wed Jan 19 16:49:00 GMT 2005
Ugh. Patch checked in. Thanks.
-- Jeff J.
On Wed, 19 Jan 2005, Shaun Jackman wrote:
> There's a neat bug in tzset_r.c.
>
> char *_tzname[2] = {"GMT" "GMT"};
> should be
> char *_tzname[2] = {"GMT", "GMT"};
>
> I say neat because it's one of those few instances where C becomes a
> "I can make some sense out of any construction." language.
>
> Cheers,
> Shaun
>
> 2004-01-19 Shaun Jackman <sjackman@gmail.com>
>
> * tzset_r.c (_tzname): Add a comma.
>
> --- tzset_r.c- 2003-06-03 11:42:09.000000000 -0700
> +++ tzset_r.c 2005-01-19 08:18:14.000000000 -0800
> @@ -12,7 +12,7 @@
> static char *prev_tzenv = NULL;
>
> /* default to GMT */
> -char *_tzname[2] = {"GMT" "GMT"};
> +char *_tzname[2] = {"GMT", "GMT"};
> int _daylight = 0;
> time_t _timezone = (time_t)0;
>
More information about the Newlib
mailing list