Author: hwright
Date: Tue Jun 14 14:52:34 2011
New Revision: 1135623
URL: http://svn.apache.org/viewvc?rev=1135623&view=rev
Log:
Avoid a potential crash by using an uninitialized variable.
* subversion/libsvn_client/util.c
(svn_client__path_relative_to_root): When getting the repos_relpath, do so
in the temp variable, to ensure it is defined later.
Modified:
subversion/trunk/subversion/libsvn_client/util.c
Modified: subversion/trunk/subversion/libsvn_client/util.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/util.c?rev=1135623&r1=1135622&r2=1135623&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/util.c (original)
+++ subversion/trunk/subversion/libsvn_client/util.c Tue Jun 14 14:52:34 2011
@@ -158,7 +158,7 @@ svn_client__path_relative_to_root(const
SVN_ERR_ASSERT(ra_session != NULL);
/* Ask the RA layer to create a relative path for us */
- err = svn_ra_get_path_relative_to_root(ra_session, rel_path,
+ err = svn_ra_get_path_relative_to_root(ra_session, &repos_relpath,
abspath_or_url, scratch_pool);
if (err)