aboutsummaryrefslogtreecommitdiff
path: root/qemu-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'qemu-config.c')
-rw-r--r--qemu-config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/qemu-config.c b/qemu-config.c
index 2de97cde29..ad130fbebe 100644
--- a/qemu-config.c
+++ b/qemu-config.c
@@ -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);