Fossil SCM
Bug fix in the local database finder.
Commit
5eac33a6bdc277989fd5c572b4d34f2184c8e063
Parent
01e7596a984e2cd…
1 file changed
+1
-1
M
src/db.c
+1
-1
| --- src/db.c | ||
| +++ src/db.c | ||
| @@ -539,11 +539,11 @@ | ||
| 539 | 539 | n--; |
| 540 | 540 | while( n>0 && zPwd[n]!='/' ){ n--; } |
| 541 | 541 | while( n>0 && zPwd[n-1]=='/' ){ n--; } |
| 542 | 542 | zPwd[n] = 0; |
| 543 | 543 | } |
| 544 | - return 1; | |
| 544 | + return n>0; | |
| 545 | 545 | } |
| 546 | 546 | |
| 547 | 547 | /* |
| 548 | 548 | ** Open the repository database given by zDbName. If zDbName==NULL then |
| 549 | 549 | ** get the name from the already open local database. |
| 550 | 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 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 |