qemu: Fix transcription error in conversion of yajl to jansson.

This broke qemu mandatory locking detection.

Fixes commit bd1c5c9f4d.

(cherry picked from commit e79286f717)
This commit is contained in:
Richard W.M. Jones
2018-03-29 20:18:34 +01:00
committed by Pino Toscano
parent 21f0a22072
commit 898e6c1e39

View File

@@ -616,7 +616,7 @@ guestfs_int_qemu_mandatory_locking (guestfs_h *g,
members = json_object_get (v, "members");
if (json_is_array (members)) {
json_array_foreach (members, j, m) {
name = json_object_get (v, "name");
name = json_object_get (m, "name");
if (json_is_string (name) &&
STREQ (json_string_value (name), "locking"))
return 1;