]> git.proxmox.com Git - qemu.git/blobdiff - check-qjson.c
scsi-generic: Handle queue full
[qemu.git] / check-qjson.c
index 2e52450d121380fe9122915e1a9de2f395b9a941..64fcdcb4ad0ac5c113d8ddd343375b0c46bf20ce 100644 (file)
@@ -9,7 +9,6 @@
  *
  */
 #include <check.h>
-#include <stdbool.h>
 
 #include "qstring.h"
 #include "qint.h"
@@ -640,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