You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2012/09/03 19:00:42 UTC
svn commit: r1380295 - /subversion/trunk/subversion/libsvn_client/update.c
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;