int thread;
if (!entry) {
qemuReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("character device information was missing aray element"));
+ _("character device information was missing array element"));
goto cleanup;
}
const char *id;
if (!entry) {
qemuReportError(VIR_ERR_INTERNAL_ERROR, "%s",
- _("character device information was missing aray element"));
+ _("character device information was missing array element"));
goto cleanup;
}
for (i = 0; i < nr_results; i++) {
virJSONValuePtr entry = virJSONValueArrayGet(data, i);
+ if (!entry) {
+ qemuReportError(VIR_ERR_INTERNAL_ERROR, "%s",
+ _("missing array element"));
+ return -1;
+ }
if (qemuMonitorJSONGetBlockJobInfoOne(entry, device, info) == 0)
return 1;
}