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:
Daniel P. Berrange 2012-11-14 15:39:48 +00:00
parent 9f87247235
commit 3782814d4a

View File

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