summaryrefslogtreecommitdiffstats
path: root/src/cc4group.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cc4group.c')
-rw-r--r--src/cc4group.c14
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;
+ }
}
}