mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
uml_conf.c: don't return an uninitialized pointer
* src/uml_conf.c (umlBuildCommandLineChr): Initialize "ret".
This commit is contained in:
parent
5cb74dadaf
commit
f435a3002b
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user