subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwri...@apache.org
Subject svn commit: r1129860 - /subversion/trunk/subversion/libsvn_ra_serf/locks.c
Date Tue, 31 May 2011 19:19:29 GMT
Author: hwright
Date: Tue May 31 19:19:29 2011
New Revision: 1129860

URL: http://svn.apache.org/viewvc?rev=1129860&view=rev
Log:
Fix potential crash with ra_serf by initializing a variable which is
conditionally set.

* subversion/libsvn_ra_serf/locks.c
  (svn_ra_serf__lock): Ensure new_err is initialized.

Modified:
    subversion/trunk/subversion/libsvn_ra_serf/locks.c

Modified: subversion/trunk/subversion/libsvn_ra_serf/locks.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra_serf/locks.c?rev=1129860&r1=1129859&r2=1129860&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra_serf/locks.c (original)
+++ subversion/trunk/subversion/libsvn_ra_serf/locks.c Tue May 31 19:19:29 2011
@@ -598,7 +598,8 @@ svn_ra_serf__lock(svn_ra_session_t *ra_s
       lock_info_t *lock_ctx;
       const void *key;
       void *val;
-      svn_error_t *err, *new_err;
+      svn_error_t *err;
+      svn_error_t *new_err = NULL;
 
       svn_pool_clear(subpool);
 



Mime
View raw message