diff --git a/examples/system-info.c b/examples/system-info.c
index de12923942403817d3e4008d65b1dd5979259093..2946d0f6f47950105d6b018d1c2e9aeb6719e930 100644
--- a/examples/system-info.c
+++ b/examples/system-info.c
@@ -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));