subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1005786 - /subversion/trunk/subversion/libsvn_wc/wc_db.c
Date Fri, 08 Oct 2010 11:38:32 GMT
Author: rhuijben
Date: Fri Oct  8 11:38:32 2010
New Revision: 1005786

URL: http://svn.apache.org/viewvc?rev=1005786&view=rev
Log:
* subversion/libsvn_wc/wc_db.c
  (svn_wc__db_read_info): Following up on r1005774, reset statement when it
    was used, instead of only when a row was fetched.

Found by: gstein

Modified:
    subversion/trunk/subversion/libsvn_wc/wc_db.c

Modified: subversion/trunk/subversion/libsvn_wc/wc_db.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc_db.c?rev=1005786&r1=1005785&r2=1005786&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db.c Fri Oct  8 11:38:32 2010
@@ -4331,7 +4331,10 @@ svn_wc__db_read_info(svn_wc__db_status_t
       SVN_ERR(svn_sqlite__step(&have_act, stmt_act));
     }
   else
-    have_act = FALSE;
+    {
+      have_act = FALSE;
+      stmt_act = NULL;
+    }
 
   if (have_info)
     {
@@ -4618,7 +4621,7 @@ svn_wc__db_read_info(svn_wc__db_status_t
                                                      scratch_pool));
     }
 
-  if (have_act)
+  if (stmt_act != NULL)
     err = svn_error_compose_create(err, svn_sqlite__reset(stmt_act));
 
   SVN_ERR(svn_error_compose_create(err, svn_sqlite__reset(stmt_info)));



Mime
View raw message