diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c index 340d8a1027..223777739d 100644 --- a/src/qemu/qemu_monitor_json.c +++ b/src/qemu/qemu_monitor_json.c @@ -6524,7 +6524,7 @@ qemuMonitorJSONGetStringListProperty(qemuMonitor *mon, if (!(*strList = virJSONValueObjectGetStringArray(reply, "return"))) return -1; - return g_strv_length(*strList); + return 0; }