render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
Daniel Veillard 263e2f
Daniel Veillard 263e2f
	Don't use first byte of string as a pointer.
Daniel Veillard 263e2f
	* src/qemu_conf.c (qemudReportError): Use the pointer, errorMessage,
Daniel Veillard 263e2f
	not its first byte, errorMessage[0].
Daniel Veillard 263e2f
Daniel Veillard 263e2f
Signed-off-by: Jim Meyering <meyering@redhat.com>
Daniel Veillard 263e2f
---
Daniel Veillard 263e2f
 src/qemu_conf.c |    2 +-
Daniel Veillard 263e2f
 1 files changed, 1 insertions(+), 1 deletions(-)
Daniel Veillard 263e2f
Daniel Veillard 263e2f
diff --git a/src/qemu_conf.c b/src/qemu_conf.c
Daniel Veillard 263e2f
index eead0bc..e54da5b 100644
Daniel Veillard 263e2f
--- a/src/qemu_conf.c
Daniel Veillard 263e2f
+++ b/src/qemu_conf.c
Daniel Veillard 263e2f
@@ -68,7 +68,7 @@ void qemudReportError(virConnectPtr conn,
Daniel Veillard 263e2f
         errorMessage[0] = '\0';
Daniel Veillard 263e2f
     }
Daniel Veillard 263e2f
Daniel Veillard 263e2f
-    virerr = __virErrorMsg(code, (errorMessage[0] ? errorMessage[0] : NULL));
Daniel Veillard 263e2f
+    virerr = __virErrorMsg(code, (errorMessage[0] ? errorMessage : NULL));
Daniel Veillard 263e2f
     __virRaiseError(conn, dom, net, VIR_FROM_QEMU, code, VIR_ERR_ERROR,
Daniel Veillard 263e2f
                     virerr, errorMessage, NULL, -1, -1, virerr, errorMessage);
Daniel Veillard 263e2f
 }