You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2013/10/16 21:14:57 UTC

svn commit: r1532866 - /subversion/trunk/subversion/libsvn_repos/dump.c

Author: stefan2
Date: Wed Oct 16 19:14:57 2013
New Revision: 1532866

URL: http://svn.apache.org/r1532866
Log:
Fix an access violation caused by incorrect pointer use.

* subversion/libsvn_repos/dump.c
  (verify_directory_entry): the cache returns a pointer to data -
                            not the data directly

Modified:
    subversion/trunk/subversion/libsvn_repos/dump.c

Modified: subversion/trunk/subversion/libsvn_repos/dump.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_repos/dump.c?rev=1532866&r1=1532865&r2=1532866&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/dump.c (original)
+++ subversion/trunk/subversion/libsvn_repos/dump.c Wed Oct 16 19:14:57 2013
@@ -1313,7 +1313,7 @@ verify_directory_entry(void *baton, cons
      type defined in the DIRENT. */
   if (db->edit_baton->verified_dirents_cache)
     {
-      svn_node_kind_t kind;
+      svn_node_kind_t *kind;
       svn_boolean_t found;
       unparsed_id = svn_fs_unparse_id(dirent->id, pool);
 
@@ -1323,7 +1323,7 @@ verify_directory_entry(void *baton, cons
 
       if (found)
         {
-          if (kind == dirent->kind)
+          if (*kind == dirent->kind)
             return SVN_NO_ERROR;
           else
             {