[json-glib] Fix code returning FALSE when it should be NULL



commit db7c76dcdc56ccaaa06051ccde5db808783bef22
Author: Robert Ancell <robert ancell canonical com>
Date:   Tue Nov 24 21:15:38 2015 +1300

    Fix code returning FALSE when it should be NULL

 json-glib/json-reader.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/json-glib/json-reader.c b/json-glib/json-reader.c
index f04ef5a..8c552e5 100644
--- a/json-glib/json-reader.c
+++ b/json-glib/json-reader.c
@@ -327,7 +327,7 @@ json_reader_set_error (JsonReader      *reader,
 const GError *
 json_reader_get_error (JsonReader *reader)
 {
-  g_return_val_if_fail (JSON_IS_READER (reader), FALSE);
+  g_return_val_if_fail (JSON_IS_READER (reader), NULL);
 
   return reader->priv->error;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]