1
0
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:
Daniel P. Berrange 2012-11-14 15:39:48 +00:00 committed by Cole Robinson
parent 3186eb057c
commit caea712245

View File

@ -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;