subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1380295 - /subversion/trunk/subversion/libsvn_client/update.c
Date Mon, 03 Sep 2012 17:00:42 GMT
Author: rhuijben
Date: Mon Sep  3 17:00:41 2012
New Revision: 1380295

URL: http://svn.apache.org/viewvc?rev=1380295&view=rev
Log:
* subversion/libsvn_client/update.c
  (update_internal): Ensure output variable is set correctly when returning
    early. This can currently happen when cropping a working copy by reducing
    the depth to excluded, when skipping an update on a conflicted tree and
    when no base node exists for the update anchor.

Found by: Ben Smith-Mannschott <bsmith.occs{_AT_}gmail.com>

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

Modified: subversion/trunk/subversion/libsvn_client/update.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/update.c?rev=1380295&r1=1380294&r2=1380295&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/update.c (original)
+++ subversion/trunk/subversion/libsvn_client/update.c Mon Sep  3 17:00:41 2012
@@ -211,6 +211,9 @@ update_internal(svn_revnum_t *result_rev
                                                  SVN_CONFIG_CATEGORY_CONFIG,
                                                  APR_HASH_KEY_STRING) : NULL;
 
+  if (result_rev)
+    *result_rev = SVN_INVALID_REVNUM;
+
   /* An unknown depth can't be sticky. */
   if (depth == svn_depth_unknown)
     depth_is_sticky = FALSE;



Mime
View raw message