mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-23 06:23:10 +00:00
Fix uninitialized variable in virLXCControllerSetupDevPTS
The lack of initialization of 'opts' caused a SEGV in the cleanup: path if the root->src directory did not exist
This commit is contained in:
parent
9f87247235
commit
3782814d4a
@ -1144,7 +1144,7 @@ virLXCControllerSetupDevPTS(virLXCControllerPtr ctrl)
|
|||||||
{
|
{
|
||||||
virDomainFSDefPtr root = virDomainGetRootFilesystem(ctrl->def);
|
virDomainFSDefPtr root = virDomainGetRootFilesystem(ctrl->def);
|
||||||
char *mount_options = NULL;
|
char *mount_options = NULL;
|
||||||
char *opts;
|
char *opts = NULL;
|
||||||
char *devpts = NULL;
|
char *devpts = NULL;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user