提交 f435a300 编写于 作者: J Jim Meyering

uml_conf.c: don't return an uninitialized pointer

* src/uml_conf.c (umlBuildCommandLineChr): Initialize "ret".
上级 5cb74dad
......@@ -275,7 +275,7 @@ umlBuildCommandLineChr(virConnectPtr conn,
virDomainChrDefPtr def,
const char *dev)
{
char *ret;
char *ret = NULL;
switch (def->type) {
case VIR_DOMAIN_CHR_TYPE_NULL:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册