You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by Daniel Shahaf <d....@daniel.shahaf.name> on 2011/01/29 03:17:43 UTC
Re: svn commit: r1064847 -
/subversion/trunk/subversion/svnserve/serve.c
hwright@apache.org wrote on Fri, Jan 28, 2011 at 20:01:35 -0000:
> Author: hwright
> Date: Fri Jan 28 20:01:35 2011
> New Revision: 1064847
>
> URL: http://svn.apache.org/viewvc?rev=1064847&view=rev
> Log:
> * subversion/svnserve/serve.c
> (log_cmd): Remove a useless check, and replace it with an assert instead.
>
> Modified:
> subversion/trunk/subversion/svnserve/serve.c
>
> Modified: subversion/trunk/subversion/svnserve/serve.c
> URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnserve/serve.c?rev=1064847&r1=1064846&r2=1064847&view=diff
> ==============================================================================
> --- subversion/trunk/subversion/svnserve/serve.c (original)
> +++ subversion/trunk/subversion/svnserve/serve.c Fri Jan 28 20:01:35 2011
> @@ -2008,18 +2008,17 @@ static svn_error_t *log_cmd(svn_ra_svn_c
> revprops = NULL;
> else if (strcmp(revprop_word, "revprops") == 0)
> {
> + SVN_ERR_ASSERT(revprop_items);
> +
If this is an input validation, then it shouldn't be an assert.