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 2019/01/28 15:45:40 UTC

svn commit: r1852382 - /subversion/trunk/subversion/libsvn_client/shelf.c

Author: julianfoad
Date: Mon Jan 28 15:45:40 2019
New Revision: 1852382

URL: http://svn.apache.org/viewvc?rev=1852382&view=rev
Log:
* subversion/libsvn_client/shelf.c
  (path_driver_cb_func): Always initialize the 'dir baton' output parameter,
    as other implementations of this callback type do, even though driver
    may not require it.

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

Modified: subversion/trunk/subversion/libsvn_client/shelf.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/shelf.c?rev=1852382&r1=1852381&r2=1852382&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/shelf.c (original)
+++ subversion/trunk/subversion/libsvn_client/shelf.c Mon Jan 28 15:45:40 2019
@@ -1477,6 +1477,8 @@ path_driver_cb_func(void **dir_baton_p,
   const char *to_wc_abspath = svn_dirent_join(wc_root_abspath, relpath,
                                               scratch_pool);
 
+  *dir_baton = NULL;
+
   SVN_ERR(status_read(&s, b->shelf_version, relpath,
                       scratch_pool, scratch_pool));
   SVN_ERR(get_base_file_abspath(&stored_base_abspath,