subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1498885 - /subversion/trunk/subversion/libsvn_delta/compat.c
Date Tue, 02 Jul 2013 11:37:54 GMT
Author: brane
Date: Tue Jul  2 11:37:54 2013
New Revision: 1498885

URL: http://svn.apache.org/r1498885
Log:
Fix change initialization in the Ev2 compatibility shims.
The shims expect an uninitialized change record's kind to be svn_node_unknown,
but it was initialized to zero, which is svn_node_none.

* subversion/libsvn_delta/compat.c (locate_change):
   Init change->kind explicitly to svn_node_unknown.

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=1498885&r1=1498884&r2=1498885&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_delta/compat.c (original)
+++ subversion/trunk/subversion/libsvn_delta/compat.c Tue Jul  2 11:37:54 2013
@@ -218,6 +218,7 @@ locate_change(struct ev2_edit_baton *eb,
   change = apr_pcalloc(eb->edit_pool, sizeof(*change));
   change->changing = SVN_INVALID_REVNUM;
   change->deleting = SVN_INVALID_REVNUM;
+  change->kind = svn_node_unknown;
 
   svn_hash_sets(eb->changes, relpath, change);
 



Mime
View raw message