aboutsummaryrefslogtreecommitdiff
path: root/check-qjson.c
diff options
context:
space:
mode:
Diffstat (limited to 'check-qjson.c')
-rw-r--r--check-qjson.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/check-qjson.c b/check-qjson.c
index 0b60e45fa6..64fcdcb4ad 100644
--- a/check-qjson.c
+++ b/check-qjson.c
@@ -639,7 +639,9 @@ END_TEST
START_TEST(empty_input)
{
- QObject *obj = qobject_from_json("");
+ const char *empty = "";
+
+ QObject *obj = qobject_from_json(empty);
fail_unless(obj == NULL);
}
END_TEST