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 Re: Am I really this stupid
Date Fri, 27 Jun 1997 10:22:07 GMT
Dirk.vanGulik wrote:
> 
> 
> Just a tidbit of mod_negotiate.c; which keeps doing
> strange things to the variant record;
> 
> This is the bit of code
> 
> #define DEBUG(x) { printf("mod_neg: "); printf x; printf("\n"); }
> 
> void set_encoding_quality(negotiation_state *neg, var_rec *variant)
> {
>     int i;
>     accept_rec *accept_recs = (accept_rec *)neg->accept_encodings->elts;
>     char *enc = variant->content_encoding;
> 
>     if (!enc || is_identity_encoding(enc)) {
>         variant->encoding_quality = 1.0;		/* ?? */
> DEBUG(("Exit %f",variant->encoding_quality));
>         return;
>     	};
> 
> And this is the debug output
> 
> 	Exit 0.0
> 
> I am being braindead; what zaps that value ?!?!???

Very curious. The only thing I can think of is that variant is not a valid
pointer (and is getting zapped during the printf)...

BTW, did you get my private email (about X), or is your email objecting to me
again?

Cheers,

Ben.

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

Mime
View raw message