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/02/07 23:55:32 UTC
svn commit: r1241683 - /subversion/trunk/subversion/libsvn_delta/compat.c
Author: hwright
Date: Tue Feb 7 22:55:32 2012
New Revision: 1241683
URL: http://svn.apache.org/viewvc?rev=1241683&view=rev
Log:
Ev2 shims: Make sure we pass a valid props hash to add_file() and
add_directory().
* subversion/libsvn_delta/compat.c
(process_actions): Provide an empty, rather than NULL, hash for props when
doing an add (if no props already exist).
Modified:
subversion/trunk/subversion/libsvn_delta/compat.c
Modified: subversion/trunk/subversion/libsvn_delta/compat.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_delta/compat.c?rev=1241683&r1=1241682&r2=1241683&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_delta/compat.c (original)
+++ subversion/trunk/subversion/libsvn_delta/compat.c Tue Feb 7 22:55:32 2012
@@ -393,6 +393,9 @@ process_actions(void *edit_baton,
if (need_add)
{
+ if (props == NULL)
+ props = apr_hash_make(scratch_pool);
+
if (kind == svn_kind_dir)
{
SVN_ERR(svn_editor_add_directory(eb->editor, path, children,