patch2 darwin & libgcj
Andreas Tobler
toa@pop.agri.ch
Wed Jan 2 13:22:00 GMT 2002
Richard Henderson wrote:
>
> On Wed, Jan 02, 2002 at 04:13:45PM +0100, Andreas Tobler wrote:
> > + tz1 = tim->tm_zone;
> > + tz2 = NULL;
> [...]
> > + if (!strcmp(tz1, tz2))
>
> Boom.
>
> You may want "" not NULL for tz2.
Probably yes, but the more I do the more I get confused. Does strcmp
bomb when I have NULL for one value to compare? I expected a >0 for this comparison.
Sorry if that's basic, but probably I have to retire a few months.... to
relearn C.
Andreas
More information about the Java
mailing list