Skip to content
Snippets Groups Projects
Commit e5b1b980 authored by Simon McVittie's avatar Simon McVittie
Browse files

examples: Add a final newline to the JSON output


This is not significant to the machine-readable output, but is nicer
for human readers.

Signed-off-by: default avatarSimon McVittie <smcv@collabora.com>
parent 3f6a14ed
No related branches found
No related tags found
1 merge request!27Enhance examples/system-info.c to show libraries and uinput capabilities
Pipeline #1349 passed
......@@ -347,6 +347,9 @@ main (int argc,
if (fputs (json_output, original_stdout) < 0)
g_warning ("Unable to write output: %s", g_strerror (errno));
if (fputs ("\n", original_stdout) < 0)
g_warning ("Unable to write final newline: %s", g_strerror (errno));
if (fclose (original_stdout) != 0)
g_warning ("Unable to close stdout: %s", g_strerror (errno));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment