qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 1/9] powerpc/kvm: Fix a uninitialized bug


From: Liu Yu
Subject: [Qemu-devel] [PATCH 1/9] powerpc/kvm: Fix a uninitialized bug
Date: Thu, 15 Jan 2009 20:34:09 +0800

Signed-off-by: Liu Yu <address@hidden>
---
 target-ppc/kvm_ppc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/target-ppc/kvm_ppc.c b/target-ppc/kvm_ppc.c
index 0caa5b9..f7ce52b 100644
--- a/target-ppc/kvm_ppc.c
+++ b/target-ppc/kvm_ppc.c
@@ -27,7 +27,7 @@ static int kvmppc_read_host_property(const char *node_path, 
const char *prop,
 {
     char *path;
     FILE *f;
-    int ret;
+    int ret = 0;
     int pathlen;
 
     pathlen = snprintf(NULL, 0, "%s/%s/%s", PROC_DEVTREE_PATH, node_path, prop)
-- 
1.5.4





reply via email to

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