[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: APR hash tables, restated

From: Greg Stein <gstein_at_lyra.org>
Date: 2000-10-14 08:30:50 CEST

On Sat, Oct 14, 2000 at 01:18:45AM -0500, Jim Blandy wrote:
>...
> Yes, that's what I used to think, too. It's certainly the behavior
> I'd expect. But that's not what the code actually does:
>
> static apr_hash_entry_t **find_entry(apr_hash_t *ht,
> const void *key,
> apr_size_t klen,
> const void *val)
> {
> ...
>
> if (klen == 0)
> klen = strlen(key) + 1;
>
> I suspect someone wanted it that way so that they could use the key
> length as the number of bytes to copy... But, whatever.

Woah!

I thought that I went and checked that. Guess not. Call me a dumbass.

Well... no matter. It'll get fixed.

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
Received on Sat Oct 21 14:36:11 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.