Fossil SCM
Fix issue introduced by previous fix.
Commit
9fbc052c88fb4e9b8c3d4f888da2cb6600e005b4
Parent
d7d335a6920257d…
1 file changed
+2
-2
+2
-2
| --- src/update.c | ||
| +++ src/update.c | ||
| @@ -499,12 +499,12 @@ | ||
| 499 | 499 | manifest_file_rewind(pManifest); |
| 500 | 500 | while( (pFile = manifest_file_next(pManifest,0))!=0 ){ |
| 501 | 501 | if( fossil_strcmp(pFile->zName, file)==0 ){ |
| 502 | 502 | rid = uuid_to_rid(pFile->zUuid, 0); |
| 503 | 503 | manifest_destroy(pManifest); |
| 504 | - if( isLink!=NULL && pFile->zPerm != 0){ | |
| 505 | - *isLink = strstr(pFile->zPerm, "l") ? 1 : 0; | |
| 504 | + if( isLink!=NULL ){ | |
| 505 | + *isLink = pFile->zPerm && strstr(pFile->zPerm, "l") ? 1 : 0; | |
| 506 | 506 | } |
| 507 | 507 | return content_get(rid, content); |
| 508 | 508 | } |
| 509 | 509 | } |
| 510 | 510 | manifest_destroy(pManifest); |
| 511 | 511 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -499,12 +499,12 @@ | |
| 499 | manifest_file_rewind(pManifest); |
| 500 | while( (pFile = manifest_file_next(pManifest,0))!=0 ){ |
| 501 | if( fossil_strcmp(pFile->zName, file)==0 ){ |
| 502 | rid = uuid_to_rid(pFile->zUuid, 0); |
| 503 | manifest_destroy(pManifest); |
| 504 | if( isLink!=NULL && pFile->zPerm != 0){ |
| 505 | *isLink = strstr(pFile->zPerm, "l") ? 1 : 0; |
| 506 | } |
| 507 | return content_get(rid, content); |
| 508 | } |
| 509 | } |
| 510 | manifest_destroy(pManifest); |
| 511 |
| --- src/update.c | |
| +++ src/update.c | |
| @@ -499,12 +499,12 @@ | |
| 499 | manifest_file_rewind(pManifest); |
| 500 | while( (pFile = manifest_file_next(pManifest,0))!=0 ){ |
| 501 | if( fossil_strcmp(pFile->zName, file)==0 ){ |
| 502 | rid = uuid_to_rid(pFile->zUuid, 0); |
| 503 | manifest_destroy(pManifest); |
| 504 | if( isLink!=NULL ){ |
| 505 | *isLink = pFile->zPerm && strstr(pFile->zPerm, "l") ? 1 : 0; |
| 506 | } |
| 507 | return content_get(rid, content); |
| 508 | } |
| 509 | } |
| 510 | manifest_destroy(pManifest); |
| 511 |