Commit 57be80f948cdbb75ef00fd8345845d83010d8af1
1 parent
406b430d
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
Showing
1 changed file
with
1 additions
and
1 deletions
target-ppc/kvm_ppc.c
| @@ -27,7 +27,7 @@ static int kvmppc_read_host_property(const char *node_path, const char *prop, | @@ -27,7 +27,7 @@ static int kvmppc_read_host_property(const char *node_path, const char *prop, | ||
| 27 | { | 27 | { |
| 28 | char *path; | 28 | char *path; |
| 29 | FILE *f; | 29 | FILE *f; |
| 30 | - int ret; | 30 | + int ret = 0; |
| 31 | int pathlen; | 31 | int pathlen; |
| 32 | 32 | ||
| 33 | pathlen = snprintf(NULL, 0, "%s/%s/%s", PROC_DEVTREE_PATH, node_path, prop) | 33 | pathlen = snprintf(NULL, 0, "%s/%s/%s", PROC_DEVTREE_PATH, node_path, prop) |