projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1ec72a
)
qemu-char: check optional fields using has_*
author
Gerd Hoffmann
<kraxel@redhat.com>
Mon, 24 Jun 2013 06:39:47 +0000
(08:39 +0200)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Fri, 28 Jun 2013 18:10:33 +0000
(22:10 +0400)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
qemu-char.c
patch
|
blob
|
history
diff --git
a/qemu-char.c
b/qemu-char.c
index
a030e6b
..
a538217
100644
(file)
--- a/
qemu-char.c
+++ b/
qemu-char.c
@@
-3493,7
+3493,7
@@
static CharDriverState *qmp_chardev_open_file(ChardevFile *file, Error **errp)
{
HANDLE out;
- if (file->in) {
+ if (file->
has_
in) {
error_setg(errp, "input file not supported");
return NULL;
}
@@
-3544,7
+3544,7
@@
static CharDriverState *qmp_chardev_open_file(ChardevFile *file, Error **errp)
return NULL;
}
- if (file->in) {
+ if (file->
has_
in) {
flags = O_RDONLY;
in = qmp_chardev_open_file_source(file->in, flags, errp);
if (error_is_set(errp)) {