Skip to content

Commit

Permalink
Merge pull request #19545 from streeterd/HPCC-33468_FileSprayer-Ensur…
Browse files Browse the repository at this point in the history
…e_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]>
  • Loading branch information
ghalliday authored Feb 21, 2025
2 parents c230918 + de73ab6 commit 6b2b676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dali/ft/filecopy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2396,7 +2396,7 @@ void FileSprayer::insertHeaders()
idx++;
}
}
if (footer)
if (footer && (idx != 0))
{
addHeaderFooter(footer, idx-1, false);
idx++;
Expand Down

0 comments on commit 6b2b676

Please sign in to comment.