httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo ...@perlig.de>
Subject Re: mod_negotiation: get a rid of atof(3)
Date Tue, 11 Mar 2003 18:16:45 GMT
* Jim Jagielski wrote:

> Not sure about
> 
> +    if (!string || !*string) {
> +        return  1.0f;
> +    }
> +
> 
> Why return 1 if passed a NULL??

Because no supplied qvalue is the same as qvalue = 1. If I'm wrong with 
that assumption, please correct me.

(NULL should never occur anyway, but let's be safe)

nd
-- 
$_=q?tvc!uif)%*|#Bopuifs!A`#~tvc!Xibu)%*|qsjou#Kvtu!A`#~tvc!KBQI!)*|~
tvc!ifmm)%*|#Qfsm!A`#~tvc!jt)%*|(Ibdlfs(~  # What the hell is JAPH? ;
@_=split/\s\s+#/;$_=(join''=>map{chr(ord(  #             André Malo ;
$_)-1)}split//=>$_[0]).$_[1];s s.*s$_see;  #  http://pub.perlig.de/ ;

Mime
View raw message