This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tzset_r.c (_tzname): Add a comma. [PATCH]


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;
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]