uml_conf.c: don't return an uninitialized pointer

* src/uml_conf.c (umlBuildCommandLineChr): Initialize "ret".
This commit is contained in:
Jim Meyering 2009-09-03 12:05:52 +02:00
parent 5cb74dadaf
commit f435a3002b

View File

@ -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: