提交 57be80f9 编写于 作者: A aliguori

powerpc/kvm: Fix a uninitialized bug (Liu Yu)

Signed-off-by: NLiu Yu <yu.liu@freescale.com>
Acked-by: NHollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>



git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6327 c046a42c-6fe2-441c-8c8c-71466251a162
上级 406b430d
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册