mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
qemuGetDomainHugepagePath: Initialize @ret
The variable may be used uninitialized in this function. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
e0d893e86d
commit
b492f7ef0f
@ -1473,7 +1473,7 @@ qemuGetDomainHugepagePath(const virDomainDef *def,
|
||||
{
|
||||
char *base = qemuGetBaseHugepagePath(hugepage);
|
||||
char *domPath = virDomainObjGetShortName(def);
|
||||
char *ret;
|
||||
char *ret = NULL;
|
||||
|
||||
if (base && domPath)
|
||||
ignore_value(virAsprintf(&ret, "%s/%s", base, domPath));
|
||||
|
Loading…
x
Reference in New Issue
Block a user