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

Re: CVS update: subversion/apr/lib apr_hash.c

From: Karl Fogel <kfogel_at_galois.collab.net>
Date: 2000-07-13 16:09:23 CEST

Thank you for following up on this one, Greg!

gstein@tigris.org writes:
> --- apr_hash.c 2000/07/07 23:42:28 1.1
> +++ apr_hash.c 2000/07/13 15:02:17 1.2
> @@ -272,7 +272,11 @@
> {
> ap_hash_entry_t **hep;
> hep = find_entry(ht, key, klen, val);
> - if (*hep && !val)
> - /* delete entry */
> - *hep = (*hep)->next;
> + if (*hep)
> + if (!val)
> + /* delete entry */
> + *hep = (*hep)->next;
> + else
> + /* replace entry */
> + (*hep)->val = val;
> }
Received on Sat Oct 21 14:36:05 2006

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