httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Stein <gst...@lyra.org>
Subject Re: cvs commit: apache-2.0/src/main http_protocol.c
Date Sun, 08 Oct 2000 19:55:47 GMT
On Sun, Oct 08, 2000 at 12:01:49PM -0700, rbb@covalent.net wrote:
> 
> > >            if ((toss = ap_strchr_c(temp, ASCII_LF)) != NULL) {
> > >                length = toss - temp + 1;
> > >   -            e->split(e, length + (temp[length] == 0));
> > >   +            e->split(e, length + (temp[length] == '\0' ? 1 : 0));
> > 
> > Bluch! == returns 0 or 1 already. The '\0' instead of 0 I agree with.
> 
> According to OtherBill, == can return -1 on some platforms.  I would much

Untrue. At the machine language level, a conditional test may produce -1,
but C produces 0 or 1. Always has.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/

Mime
View raw message