You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Karl Fogel <kf...@galois.collab.net> on 2000/07/13 14:09:23 UTC

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

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;
>    }