From cce1435c280dbf63b0dbb8c9176e062c539aa9f9 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 26 Oct 2012 11:04:47 +0100 Subject: 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(). --- json-glib/json-array.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'json-glib/json-array.c') 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) { -- cgit v1.2.1