Fossil SCM

Bug fix in the local database finder.

drh 2007-07-30 13:01 trunk
Commit 5eac33a6bdc277989fd5c572b4d34f2184c8e063
1 file changed +1 -1
+1 -1
--- src/db.c
+++ src/db.c
@@ -539,11 +539,11 @@
539539
n--;
540540
while( n>0 && zPwd[n]!='/' ){ n--; }
541541
while( n>0 && zPwd[n-1]=='/' ){ n--; }
542542
zPwd[n] = 0;
543543
}
544
- return 1;
544
+ return n>0;
545545
}
546546
547547
/*
548548
** Open the repository database given by zDbName. If zDbName==NULL then
549549
** get the name from the already open local database.
550550
--- src/db.c
+++ src/db.c
@@ -539,11 +539,11 @@
539 n--;
540 while( n>0 && zPwd[n]!='/' ){ n--; }
541 while( n>0 && zPwd[n-1]=='/' ){ n--; }
542 zPwd[n] = 0;
543 }
544 return 1;
545 }
546
547 /*
548 ** Open the repository database given by zDbName. If zDbName==NULL then
549 ** get the name from the already open local database.
550
--- src/db.c
+++ src/db.c
@@ -539,11 +539,11 @@
539 n--;
540 while( n>0 && zPwd[n]!='/' ){ n--; }
541 while( n>0 && zPwd[n-1]=='/' ){ n--; }
542 zPwd[n] = 0;
543 }
544 return n>0;
545 }
546
547 /*
548 ** Open the repository database given by zDbName. If zDbName==NULL then
549 ** get the name from the already open local database.
550

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button