From 542379f42642179cea33571c2799ca6fd03bf452 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Tue, 8 Nov 2011 11:00:38 +0100 Subject: qdev: Fix crash on -device '?=x' Spotted by Coverity. Signed-off-by: Markus Armbruster Signed-off-by: Stefan Hajnoczi --- hw/qdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/qdev.c b/hw/qdev.c index 50976dd0c1..106407f226 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -186,7 +186,7 @@ int qdev_device_help(QemuOpts *opts) return 1; } - if (!qemu_opt_get(opts, "?")) { + if (!driver || !qemu_opt_get(opts, "?")) { return 0; } -- cgit v1.2.3