Fossil SCM

Fix segfault when accessing the initial checkin directory on a fusefs mounted repository.

drh 2018-02-16 16:28 trunk merge
Commit 55f6c765fb62b03f33e33bc3af10ee3523928fd6fe0964407eafaa4a32e169dd
1 file changed +3
--- src/manifest.c
+++ src/manifest.c
@@ -1267,10 +1267,13 @@
12671267
int bBest /* 0: exact match only. 1: closest match */
12681268
){
12691269
int lwr, upr;
12701270
int c;
12711271
int i;
1272
+ if( p->aFile==0 ){
1273
+ return 0;
1274
+ }
12721275
lwr = 0;
12731276
upr = p->nFile - 1;
12741277
if( p->iFile>=lwr && p->iFile<upr ){
12751278
c = fossil_strcmp(p->aFile[p->iFile+1].zName, zName);
12761279
if( c==0 ){
12771280
--- src/manifest.c
+++ src/manifest.c
@@ -1267,10 +1267,13 @@
1267 int bBest /* 0: exact match only. 1: closest match */
1268 ){
1269 int lwr, upr;
1270 int c;
1271 int i;
 
 
 
1272 lwr = 0;
1273 upr = p->nFile - 1;
1274 if( p->iFile>=lwr && p->iFile<upr ){
1275 c = fossil_strcmp(p->aFile[p->iFile+1].zName, zName);
1276 if( c==0 ){
1277
--- src/manifest.c
+++ src/manifest.c
@@ -1267,10 +1267,13 @@
1267 int bBest /* 0: exact match only. 1: closest match */
1268 ){
1269 int lwr, upr;
1270 int c;
1271 int i;
1272 if( p->aFile==0 ){
1273 return 0;
1274 }
1275 lwr = 0;
1276 upr = p->nFile - 1;
1277 if( p->iFile>=lwr && p->iFile<upr ){
1278 c = fossil_strcmp(p->aFile[p->iFile+1].zName, zName);
1279 if( c==0 ){
1280

Keyboard Shortcuts

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