[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/2] qemu-option: avoid segfault if QemuOptsList ==
From: |
Peter Lieven |
Subject: |
[Qemu-devel] [PATCH 1/2] qemu-option: avoid segfault if QemuOptsList == NULL |
Date: |
Tue, 19 Mar 2013 09:19:17 +0100 |
Signed-off-by: Peter Lieven <address@hidden>
---
util/qemu-option.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/util/qemu-option.c b/util/qemu-option.c
index 8b74bf1..24479d2 100644
--- a/util/qemu-option.c
+++ b/util/qemu-option.c
@@ -938,6 +938,7 @@ static QemuOpts *opts_parse(QemuOptsList *list, const char
*params,
QemuOpts *opts;
Error *local_err = NULL;
+ assert(list != NULL);
assert(!permit_abbrev || list->implied_opt_name);
firstname = permit_abbrev ? list->implied_opt_name : NULL;
--
1.7.9.5