Skip to content

Commit d392fcc

Browse files
committed
Add newline at the end of function pointer restriction json file.
1 parent 8911c0a commit d392fcc

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)