Diff
Not logged in

Differences From:

File src/db.c part of check-in [371dd6574c] - Fix the revert command so that it works from subdirectories. Other minor comment and help-text changes. by drh on 2007-12-04 01:26:21. Also file src/db.c part of check-in [d0305b305a] - Merged mainline into my branch to get the newest application. by aku on 2007-12-05 08:07:46. [view]

To:

File src/db.c part of check-in [bf1a30c9c0] - Fix a bug in the db_get_int() routine that was causing the default value to be ignored - resulting in very slow clones for systems without a configuration database. by drh on 2008-01-31 21:31:17. Also file src/db.c part of check-in [dbdc160161] - Merged with mainline. by aku on 2008-02-02 07:33:03. [view]

@@ -930,9 +930,9 @@
     return 0;
   }
 }
 int db_get_int(const char *zName, int dflt){
-  int v;
+  int v = dflt;
   int rc;
   if( g.repositoryOpen ){
     Stmt q;
     db_prepare(&q, "SELECT value FROM config WHERE name=%Q", zName);