projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7af72c2
)
Silence compiler warning in json test case
author
Jan Kiszka
<jan.kiszka@web.de>
Sat, 16 Oct 2010 17:42:43 +0000
(19:42 +0200)
committer
Luiz Capitulino
<lcapitulino@redhat.com>
Fri, 22 Oct 2010 12:08:37 +0000
(10:08 -0200)
This avoids
error: zero-length gnu_printf format string
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
check-qjson.c
patch
|
blob
|
history
diff --git
a/check-qjson.c
b/check-qjson.c
index 0b60e45fa64ac70d8a24dc54f8053d15a9b94b70..64fcdcb4ad0ac5c113d8ddd343375b0c46bf20ce 100644
(file)
--- 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