diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-15 21:18:42 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-15 21:18:42 +0000 |
commit | 57be80f948cdbb75ef00fd8345845d83010d8af1 (patch) | |
tree | 80418a1ac30222e0bc00fd449900373106a3ae03 | |
parent | 406b430d48c70ec6339bd057da07484df1c85f76 (diff) | |
download | qemu-57be80f948cdbb75ef00fd8345845d83010d8af1.tar.gz qemu-57be80f948cdbb75ef00fd8345845d83010d8af1.tar.bz2 qemu-57be80f948cdbb75ef00fd8345845d83010d8af1.zip |
powerpc/kvm: Fix a uninitialized bug (Liu Yu)
Signed-off-by: Liu Yu <yu.liu@freescale.com>
Acked-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6327 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | 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 0caa5b98c7..f7ce52b045 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) |