Skip to content

Commit 6b2b676

Browse files
authored
Merge pull request #19545 from streeterd/HPCC-33468_FileSprayer-Ensure_a_correct_index_is_used_when_adding_a_footer
HPCC-33468 FileSprayer: Ensure a correct index is used when adding a footer Reviewed-by: Jake Smith <[email protected]> Merged-by: Gavin Halliday <[email protected]>
2 parents c230918 + de73ab6 commit 6b2b676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dali/ft/filecopy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2396,7 +2396,7 @@ void FileSprayer::insertHeaders()
23962396
idx++;
23972397
}
23982398
}
2399-
if (footer)
2399+
if (footer && (idx != 0))
24002400
{
24012401
addHeaderFooter(footer, idx-1, false);
24022402
idx++;

0 commit comments

Comments
 (0)