www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Cohn <...@wildeye.com>
Subject general/2642: FYI: Possible use of "=" where "==" was intended
Date Sun, 19 Jul 1998 03:29:39 GMT

>Number:         2642
>Category:       general
>Synopsis:       FYI: Possible use of "=" where "==" was intended
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sat Jul 18 20:30:01 PDT 1998
>Last-Modified:
>Originator:     ted@wildeye.com
>Organization:
apache
>Release:        1.3.0
>Environment:
IRIX 6.2 on Indigo2. GCC compiler (sorry I don't have the version handy--I'm sure it's the
latest though).
>Description:
This seems like it could be a bug. Just thought I'd bring this to someone's attention. It
seems like if this is an assignment, it should be made more explicit--the if should be broken
up for clarity. Otherwise, should be rewritten as "1 == r->chunked":



"http_protocol.c", line 302: warning(1184): possible use of "=" where "==" was

          intended

           ((r->proto_num >= HTTP_VERSION(1,1)) && (r->chunked = 1))) &&



>How-To-Repeat:
Compile the source.
>Fix:
I don't understand this code, don't have time to investigate, and am therefore not qualified
to suggest a fix.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, ]
[you need to include <apbugs@Apache.Org> in the Cc line ]
[and leave the subject line UNCHANGED.  This is not done]
[automatically because of the potential for mail loops. ]




Mime
View raw message