mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
uml_conf.c: don't return an uninitialized pointer
* src/uml_conf.c (umlBuildCommandLineChr): Initialize "ret".
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user