mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +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 (cherry picked from commit 3782814d4ad787d815e56382b6f809fe9020f14b)
This commit is contained in:
parent
3186eb057c
commit
caea712245
@ -1143,7 +1143,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…
x
Reference in New Issue
Block a user