From 25410ea795434bf4d22752a315f02e09f93f0d57 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Wed, 22 Apr 2020 19:41:09 +0200 Subject: Fix cc4group_getEntryInfoForEntry --- src/cc4group.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src') 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; + } } } -- cgit v1.2.3-54-g00ecf