commit | ef82516d8fb41cbae9703d07516641f6bdf91a77 | [log] [tgz] |
---|---|---|
author | Markus Armbruster <armbru@redhat.com> | Thu Feb 18 19:56:01 2010 +0100 |
committer | Markus Armbruster <armbru@redhat.com> | Tue Mar 16 16:58:32 2010 +0100 |
tree | 1b43e98ae4d2efcaad9e6999919ac37a1e85703f | |
parent | cf5a65aaaf3e9382e50df550ba049a1c8691a5dd [diff] [blame] |
QemuOpts: Fix qemu_config_parse() to catch file read errors
diff --git a/qemu-config.c b/qemu-config.c index 2de97cd..ad130fb 100644 --- a/qemu-config.c +++ b/qemu-config.c
@@ -475,6 +475,10 @@ error_report("parse error"); goto out; } + if (ferror(fp)) { + error_report("error reading file"); + goto out; + } res = 0; out: loc_pop(&loc);