Skip to content
Snippets Groups Projects
Commit b91e1eb2 authored by Guido Günther's avatar Guido Günther
Browse files

don't crash when no emulator is defined

(0005-fix-crash-when-no-emulator-is-defined-for-kvm-qemu.patch)
parent 0ef01e7b
No related branches found
No related tags found
No related merge requests found
From 0b5d455fb497a1d3785d862639102697eda4d2e3 Mon Sep 17 00:00:00 2001
From: Cole Robinson <crobinso@redhat.com>
Date: Mon, 22 Sep 2008 16:03:00 +0200
Subject: [PATCH] fix crash when no emulator is defined for kvm/qemu
---
src/qemu_conf.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/qemu_conf.c b/src/qemu_conf.c
index d742c32..23ef050 100644
--- a/src/qemu_conf.c
+++ b/src/qemu_conf.c
@@ -790,7 +790,7 @@ int qemudBuildCommandLine(virConnectPtr conn,
if (!emulator)
return -1;
- ADD_ARG_LIT(vm->def->emulator);
+ ADD_ARG_LIT(emulator);
ADD_ARG_LIT("-S");
ADD_ARG_LIT("-M");
ADD_ARG_LIT(vm->def->os.machine);
--
1.5.6.5
......@@ -2,3 +2,4 @@
0002-qemu-disable-network.diff.patch
0003-allow-libvirt-group-to-access-the-socket.patch
0004-for-kvm-determine-maxVCPUs-at-runtime.patch
0005-fix-crash-when-no-emulator-is-defined-for-kvm-qemu.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment