summaryrefslogtreecommitdiff
path: root/tests/test-07.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-07.c')
-rw-r--r--tests/test-07.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/tests/test-07.c b/tests/test-07.c
index fe5dafa..0dda4f6 100644
--- a/tests/test-07.c
+++ b/tests/test-07.c
@@ -98,7 +98,7 @@ test_object_serialize_property (JsonSerializable *serializable,
const GValue *value,
GParamSpec *pspec)
{
- JsonNode *retval;
+ JsonNode *retval = NULL;
if (strcmp (name, "blah") == 0)
{
@@ -123,17 +123,6 @@ test_object_serialize_property (JsonSerializable *serializable,
test_boxed_free (boxed);
}
- else
- {
- GValue copy = { 0, };
-
- retval = json_node_new (JSON_NODE_VALUE);
-
- g_value_init (&copy, G_PARAM_SPEC_VALUE_TYPE (pspec));
- g_value_copy (value, &copy);
- json_node_set_value (retval, &copy);
- g_value_unset (&copy);
- }
return retval;
}