Check-in [5eac33a6bd]
Not logged in
Overview

SHA1 Hash:5eac33a6bdc277989fd5c572b4d34f2184c8e063
Date: 2007-07-30 13:01:08
User: drh
Comment:Bug fix in the local database finder.
Timelines: ancestors | descendants | both | trunk
Other Links: files | ZIP archive | manifest

Tags And Properties
Changes
[hide diffs]

Modified src/db.c from [e56e457646] to [84850dc1ab].

@@ -539,11 +539,11 @@
     n--;
     while( n>0 && zPwd[n]!='/' ){ n--; }
     while( n>0 && zPwd[n-1]=='/' ){ n--; }
     zPwd[n] = 0;
   }
-  return 1;
+  return n>0;
 }
 
 /*
 ** Open the repository database given by zDbName.  If zDbName==NULL then
 ** get the name from the already open local database.