sim-card
/
qemu
Archived
10
0
Fork 0

QemuOpts: Fix qemu_config_parse() to catch file read errors

This commit is contained in:
Markus Armbruster 2010-02-18 19:56:01 +01:00
parent cf5a65aaaf
commit ef82516d8f
1 changed files with 4 additions and 0 deletions

View File

@ -475,6 +475,10 @@ int qemu_config_parse(FILE *fp, const char *fname)
error_report("parse error");
goto out;
}
if (ferror(fp)) {
error_report("error reading file");
goto out;
}
res = 0;
out:
loc_pop(&loc);