You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by br...@apache.org on 2013/03/14 07:18:05 UTC
svn commit: r1456341 -
/subversion/trunk/subversion/bindings/javahl/native/SVNRepos.cpp
Author: brane
Date: Thu Mar 14 06:18:05 2013
New Revision: 1456341
URL: http://svn.apache.org/r1456341
Log:
* subversion/bindings/javahl/native/SVNRepos.cpp (SVNRepos::rmlocks):
Initialize local variable to NULL to silence a warning about possible
use of an uninitialized value. The compiler cannot tell that
svn_utf_cstring_to_utf8 does not read the value pointed to by its
first (outpu) parameter.
Modified:
subversion/trunk/subversion/bindings/javahl/native/SVNRepos.cpp
Modified: subversion/trunk/subversion/bindings/javahl/native/SVNRepos.cpp
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/javahl/native/SVNRepos.cpp?rev=1456341&r1=1456340&r2=1456341&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/javahl/native/SVNRepos.cpp (original)
+++ subversion/trunk/subversion/bindings/javahl/native/SVNRepos.cpp Thu Mar 14 06:18:05 2013
@@ -694,7 +694,7 @@ void SVNRepos::rmlocks(File &path, Strin
SVN_JNI_ERR(svn_repos_open2(&repos, path.getInternalStyle(requestPool),
NULL, requestPool.getPool()), );
fs = svn_repos_fs(repos);
- const char *username;
+ const char *username = NULL;
/* svn_fs_unlock() demands that some username be associated with the
* filesystem, so just use the UID of the person running 'svnadmin'.*/