You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2012/03/02 14:42:12 UTC

svn commit: r1296201 - /subversion/trunk/subversion/libsvn_client/util.c

Author: hwright
Date: Fri Mar  2 13:42:11 2012
New Revision: 1296201

URL: http://svn.apache.org/viewvc?rev=1296201&view=rev
Log:
* subversion/libsvn_client/util.c
  (fetch_props_func): Return an empty prop hash, rather than a NULL one.

Modified:
    subversion/trunk/subversion/libsvn_client/util.c

Modified: subversion/trunk/subversion/libsvn_client/util.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/util.c?rev=1296201&r1=1296200&r2=1296201&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/util.c (original)
+++ subversion/trunk/subversion/libsvn_client/util.c Fri Mar  2 13:42:11 2012
@@ -262,7 +262,7 @@ fetch_props_func(apr_hash_t **props,
      working copy, and hence no method of fetching the requisite information. */
   if (!scb->anchor_abspath)
     {
-      *props = NULL;
+      *props = apr_hash_make(result_pool);
       return SVN_NO_ERROR;
     }
 



Re: svn commit: r1296201 - /subversion/trunk/subversion/libsvn_client/util.c

Posted by Hyrum K Wright <hy...@wandisco.com>.
On Fri, Mar 2, 2012 at 8:14 AM, Daniel Shahaf <d....@daniel.shahaf.name> wrote:
> hwright@apache.org wrote on Fri, Mar 02, 2012 at 13:42:12 -0000:
>> Author: hwright
>> Date: Fri Mar  2 13:42:11 2012
>> New Revision: 1296201
>>
>> URL: http://svn.apache.org/viewvc?rev=1296201&view=rev
>> Log:
>> * subversion/libsvn_client/util.c
>>   (fetch_props_func): Return an empty prop hash, rather than a NULL one.
>>
>
> Why?

Because callers expect it?

>
>> Modified:
>>     subversion/trunk/subversion/libsvn_client/util.c
>>
>> Modified: subversion/trunk/subversion/libsvn_client/util.c
>> URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/util.c?rev=1296201&r1=1296200&r2=1296201&view=diff
>> ==============================================================================
>> --- subversion/trunk/subversion/libsvn_client/util.c (original)
>> +++ subversion/trunk/subversion/libsvn_client/util.c Fri Mar  2 13:42:11 2012
>> @@ -262,7 +262,7 @@ fetch_props_func(apr_hash_t **props,
>>       working copy, and hence no method of fetching the requisite information. */
>>    if (!scb->anchor_abspath)
>>      {
>> -      *props = NULL;
>> +      *props = apr_hash_make(result_pool);
>>        return SVN_NO_ERROR;
>>      }
>>
>>
>>



-- 

uberSVN: Apache Subversion Made Easy
http://www.uberSVN.com/

Re: svn commit: r1296201 - /subversion/trunk/subversion/libsvn_client/util.c

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
hwright@apache.org wrote on Fri, Mar 02, 2012 at 13:42:12 -0000:
> Author: hwright
> Date: Fri Mar  2 13:42:11 2012
> New Revision: 1296201
> 
> URL: http://svn.apache.org/viewvc?rev=1296201&view=rev
> Log:
> * subversion/libsvn_client/util.c
>   (fetch_props_func): Return an empty prop hash, rather than a NULL one.
> 

Why?

> Modified:
>     subversion/trunk/subversion/libsvn_client/util.c
> 
> Modified: subversion/trunk/subversion/libsvn_client/util.c
> URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/util.c?rev=1296201&r1=1296200&r2=1296201&view=diff
> ==============================================================================
> --- subversion/trunk/subversion/libsvn_client/util.c (original)
> +++ subversion/trunk/subversion/libsvn_client/util.c Fri Mar  2 13:42:11 2012
> @@ -262,7 +262,7 @@ fetch_props_func(apr_hash_t **props,
>       working copy, and hence no method of fetching the requisite information. */
>    if (!scb->anchor_abspath)
>      {
> -      *props = NULL;
> +      *props = apr_hash_make(result_pool);
>        return SVN_NO_ERROR;
>      }
>  
> 
>