You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Greg Stein <gs...@gmail.com> on 2012/05/21 06:11:28 UTC

Re: svn commit: r1340874 - /subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c

On Sun, May 20, 2012 at 8:14 PM,  <st...@apache.org> wrote:
>...
> +++ subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c Mon May 21 00:14:20 2012
>...
> +              const char *path;
> +              apr_ssize_t klen;
> +              apr_hash_this(hi, (const void **)&path, &klen, NULL);

Historically, we have not allowed casts like this. Please switch the
PATH localvar to void* and drop the cast. The rest of the function
will work fine with path as a void*.

> +
> +              /* If we come across a child of our path, remove it.
> +                 Call svn_dirent_is_child only if there is a chance that
> +                 this is actually a sub-path.
> +               */
> +              if (   klen >= min_child_len
> +                  && svn_dirent_is_child(change->path, path, iterpool))
>                 apr_hash_set(changed_paths, path, klen, NULL);
>             }
>         }

Cheers,
-g

Re: svn commit: r1340874 - /subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c

Posted by Stefan Fuhrmann <eq...@web.de>.
Greg Stein wrote:
> On Sun, May 20, 2012 at 8:14 PM,<st...@apache.org>  wrote:
>> ...
>> +++ subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c Mon May 21 00:14:20 2012
>> ...
>> +              const char *path;
>> +              apr_ssize_t klen;
>> +              apr_hash_this(hi, (const void **)&path,&klen, NULL);
> Historically, we have not allowed casts like this. Please switch the
> PATH localvar to void* and drop the cast. The rest of the function
> will work fine with path as a void*.

Done in r1340956.

-- Stefan^2.