httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@gonzo.ben.algroup.co.uk>
Subject Useless code in next_token
Date Sun, 13 Oct 1996 11:21:22 GMT
next_token() in util.c contains the following fragment:

    while (*cp && (iscntrl (*cp) || strchr (tspecials, *cp))) {
        if (*cp == '"')
	  while (*cp && (*cp != '"')) ++cp;
	else
	  ++cp;
    }

It is not possible for *cp to be '"' in the body of the loop. What say I
eliminate this misleading code?

Cheers,

Ben.

-- 
Ben Laurie                  Phone: +44 (181) 994 6435
Freelance Consultant and    Fax:   +44 (181) 994 6472
Technical Director          Email: ben@algroup.co.uk
A.L. Digital Ltd,           URL: http://www.algroup.co.uk
London, England.            Apache Group member (http://www.apache.org)

Mime
View raw message