]> git.proxmox.com Git - qemu.git/blobdiff - monitor.c
Fix Sparse warnings: "Using plain integer as NULL pointer"
[qemu.git] / monitor.c
index 909325423a0b7952607bff9423a6adee7197a5f5..aac88781cc6680aac3f11e71c72b1d6a73557fb2 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -2272,7 +2272,7 @@ static int get_monitor_def(target_long *pval, const char *name)
 
 static void next(void)
 {
-    if (pch != '\0') {
+    if (*pch != '\0') {
         pch++;
         while (qemu_isspace(*pch))
             pch++;