httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: cvs commit: apache-2.0/src/main http_protocol.c
Date Sun, 08 Oct 2000 18:57:20 GMT
rbb@locus.apache.org wrote:
> 
> rbb         00/10/08 09:06:57
> 
>   Modified:    src/main http_protocol.c
>   Log:
>   Clean up the test for \0 in getline.
>   Submitted by: Will Wrowe
> 
>   Revision  Changes    Path
>   1.152     +1 -1      apache-2.0/src/main/http_protocol.c
> 
>   Index: http_protocol.c
>   ===================================================================
>   RCS file: /home/cvs/apache-2.0/src/main/http_protocol.c,v
>   retrieving revision 1.151
>   retrieving revision 1.152
>   diff -u -r1.151 -r1.152
>   --- http_protocol.c   2000/10/08 06:08:58     1.151
>   +++ http_protocol.c   2000/10/08 16:06:57     1.152
>   @@ -1023,7 +1023,7 @@
>          */
>            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.

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

Coming to ApacheCon Europe 2000? http://apachecon.com/

Mime
View raw message