qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [RFC][PATCH v2 08/17] qapi: fix Error usage in qemu-sockets


From: Michael Roth
Subject: [Qemu-devel] [RFC][PATCH v2 08/17] qapi: fix Error usage in qemu-sockets.c
Date: Mon, 18 Apr 2011 10:02:24 -0500

Fix spurious errors due to not initializing Error pointer to NULL before
checking for errors.

Signed-off-by: Michael Roth <address@hidden>
---
 qemu-sockets.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/qemu-sockets.c b/qemu-sockets.c
index dc8beeb..e709e5f 100644
--- a/qemu-sockets.c
+++ b/qemu-sockets.c
@@ -630,7 +630,7 @@ int unix_connect(const char *path)
 {
     QemuOpts *opts;
     int sock;
-    Error *err;
+    Error *err = NULL;
 
     opts = qemu_opts_create(&dummy_opts, NULL, 0, &err);
     if (err) {
-- 
1.7.0.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]