diff options
| author | Markus Mittendrein <git@maxmitti.tk> | 2020-04-22 19:41:09 +0200 |
|---|---|---|
| committer | Markus Mittendrein <git@maxmitti.tk> | 2020-04-22 19:41:09 +0200 |
| commit | 25410ea795434bf4d22752a315f02e09f93f0d57 (patch) | |
| tree | 18b4dff990979d41cbb2465387718df302071331 /src | |
| parent | e14cbffbc5fe61337166d962e9a2b6e3bf0ff079 (diff) | |
| download | cc4group-25410ea795434bf4d22752a315f02e09f93f0d57.tar.gz cc4group-25410ea795434bf4d22752a315f02e09f93f0d57.zip | |
Fix cc4group_getEntryInfoForEntry
Diffstat (limited to 'src')
| -rw-r--r-- | src/cc4group.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/cc4group.c b/src/cc4group.c index 981206b..647a34a 100644 --- a/src/cc4group.c +++ b/src/cc4group.c @@ -2775,13 +2775,17 @@ static bool cc4group_saveParent(CC4Group* const this) static bool cc4group_getEntryInfoForEntry(CC4Group* const this, const C4GroupEntryData* const entry, CC4Group_EntryInfo* const info, bool const lazy) { - C4GroupHeader* header = entry->header; - if(entry->core.Directory && header == NULL && !((this->lazy || entry->path != NULL) && lazy)) + C4GroupHeader* header = NULL; + if(entry->core.Directory) { - header = cc4group_getHeader(this, entry); - if(header == NULL) + header = entry->header; + if(header == NULL && !((this->lazy || entry->path != NULL) && lazy)) { - return false; + header = cc4group_getHeader(this, entry); + if(header == NULL) + { + return false; + } } } |
