>Number: 517
>Category: general
>Synopsis: an assignment "=" sign when it appears you really want a "=="
>to test for equality
>Confidential: no
>Severity: critical
>Priority: medium
>Responsible: apache (Apache HTTP Project)
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Wed Apr 30 15:50:01 1997
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release:
>Environment:
Apache 1.2b10
Silicon Graphics IRIX 6.2 cc compilier
Possible programming mistake
>Description:
cc -c -n32 -O2 -DIRIX http_protocol.c
"http_protocol.c", line 299: warning(1184): possible use of "=" where "==" was
intended
((r->proto_num >= 1001) && (r->chunked = 1))) &&
^
>How-To-Repeat:
The second test (r->chunked =1) will always be true so it is
meaningless.
I think you want a "==" instead.
>Fix:
>Audit-Trail:
>Unformatted: