diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2016-02-29 00:31:57 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gnome.org> | 2016-02-29 00:31:57 +0000 |
commit | 8ff4ca0a807e8bb04081bcf47e7a9951edd70ac9 (patch) | |
tree | def13e03dda5d8a4ad88b8599821fe6c6714c480 /json-glib/json-glib-format.c | |
parent | 130190ed1ca0387b4bc22b15b0e1a910e961c667 (diff) | |
download | json-glib-8ff4ca0a807e8bb04081bcf47e7a9951edd70ac9.tar.gz |
format: Silence a compiler warning
Diffstat (limited to 'json-glib/json-glib-format.c')
-rw-r--r-- | json-glib/json-glib-format.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/json-glib/json-glib-format.c b/json-glib/json-glib-format.c index d39b325..177e8b3 100644 --- a/json-glib/json-glib-format.c +++ b/json-glib/json-glib-format.c @@ -114,7 +114,8 @@ format (JsonParser *parser, p += written; } - write (STDOUT_FILENO, "\n", 1); + if (write (STDOUT_FILENO, "\n", 1) < 0) + g_error ("%s: %s", g_get_prgname (), g_strerror (errno)); g_free (data); |