Skip to content

Commit 8b604a7

Browse files
authored
Merge pull request #5294 from NlightNFotis/newline_function_pointer_restrictions
Add newline at the end of function pointer restriction json file.
2 parents 62b9c96 + d392fcc commit 8b604a7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/goto-programs/restrict_function_pointers.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,8 @@ void function_pointer_restrictionst::write_to_file(
579579
}
580580

581581
function_pointer_restrictions_json.output(outFile);
582+
// Ensure output file ends with a newline character.
583+
outFile << '\n';
582584
}
583585

584586
function_pointer_restrictionst::restrictionst

0 commit comments

Comments
 (0)