summaryrefslogtreecommitdiff
path: root/json-glib/json-array.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2012-10-26 11:04:47 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2012-10-26 11:12:58 +0100
commitcce1435c280dbf63b0dbb8c9176e062c539aa9f9 (patch)
tree5fb39bbbbea94e75c73ec9b67464563aca40d46b /json-glib/json-array.c
parentbf273f396c640c17da9f742433b4855232b2062e (diff)
downloadjson-glib-cce1435c280dbf63b0dbb8c9176e062c539aa9f9.tar.gz
array: Relax preconditions on array and object methods
Similarly to what we did for the add_string_element(), we need to relax the preconditions for add_array_element() and add_object_element().
Diffstat (limited to 'json-glib/json-array.c')
-rw-r--r--json-glib/json-array.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/json-glib/json-array.c b/json-glib/json-array.c
index f9d641e..3d5e47f 100644
--- a/json-glib/json-array.c
+++ b/json-glib/json-array.c
@@ -609,7 +609,6 @@ json_array_add_array_element (JsonArray *array,
JsonNode *node;
g_return_if_fail (array != NULL);
- g_return_if_fail (value != NULL);
if (value != NULL)
{
@@ -641,7 +640,6 @@ json_array_add_object_element (JsonArray *array,
JsonNode *node;
g_return_if_fail (array != NULL);
- g_return_if_fail (value != NULL);
if (value != NULL)
{