mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-20 11:48:28 -06: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);
|
||||
char *mount_options = NULL;
|
||||
char *opts;
|
||||
char *opts = NULL;
|
||||
char *devpts = NULL;
|
||||
int ret = -1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user