You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2014/10/31 11:30:35 UTC

svn commit: r1635745 - /subversion/branches/move-tracking-2/subversion/libsvn_delta/editor3.c

Author: julianfoad
Date: Fri Oct 31 10:30:35 2014
New Revision: 1635745

URL: http://svn.apache.org/r1635745
Log:
On the 'move-tracking-2' branch: A follow-up fix to r1635437.

* subversion/libsvn_delta/editor3.c
  (svn_editor3_node_content_create_dir,
   svn_editor3_node_content_create_file,
   svn_editor3_node_content_create_symlink): Allow 'props' to be null.

Modified:
    subversion/branches/move-tracking-2/subversion/libsvn_delta/editor3.c

Modified: subversion/branches/move-tracking-2/subversion/libsvn_delta/editor3.c
URL: http://svn.apache.org/viewvc/subversion/branches/move-tracking-2/subversion/libsvn_delta/editor3.c?rev=1635745&r1=1635744&r2=1635745&view=diff
==============================================================================
--- subversion/branches/move-tracking-2/subversion/libsvn_delta/editor3.c (original)
+++ subversion/branches/move-tracking-2/subversion/libsvn_delta/editor3.c Fri Oct 31 10:30:35 2014
@@ -521,7 +521,7 @@ svn_editor3_node_content_create_dir(apr_
     = apr_pcalloc(result_pool, sizeof(*new_content));
 
   new_content->kind = svn_node_dir;
-  new_content->props = svn_prop_hash_dup(props, result_pool);
+  new_content->props = props ? svn_prop_hash_dup(props, result_pool) : NULL;
   return new_content;
 }
 
@@ -536,7 +536,7 @@ svn_editor3_node_content_create_file(apr
   SVN_ERR_ASSERT_NO_RETURN(text);
 
   new_content->kind = svn_node_file;
-  new_content->props = svn_prop_hash_dup(props, result_pool);
+  new_content->props = props ? svn_prop_hash_dup(props, result_pool) : NULL;
   new_content->text = svn_stringbuf_dup(text, result_pool);
   return new_content;
 }
@@ -552,7 +552,7 @@ svn_editor3_node_content_create_symlink(
   SVN_ERR_ASSERT_NO_RETURN(target);
 
   new_content->kind = svn_node_symlink;
-  new_content->props = svn_prop_hash_dup(props, result_pool);
+  new_content->props = props ? svn_prop_hash_dup(props, result_pool) : NULL;
   new_content->target = apr_pstrdup(result_pool, target);
   return new_content;
 }