Commit 1571958e authored by jcfr's avatar jcfr
Browse files

BUG: Fix crash by ensuring private member is initialized.

Thanks to Bill Lorensen, Alex Yarmarkovich and Csaba Pinter for pointing
out the problem.

To provide some background:

  While working on the commit r21482 that introduced the problem, the
variable was automatically initialized to 0 on my workstattion and I didn't
 face the issue.

  Having valgrind reporting uninitialized variable on the dashboard would
also be helpful.

git-svn-id: 3bd1e089-480b-0410-8dfb-8563597acbee
parent 31cc2852
......@@ -105,6 +105,7 @@ qSlicerCoreApplicationPrivate::qSlicerCoreApplicationPrivate(
this->UserSettings = 0;
this->RevisionUserSettings = 0;
this->ReturnCode = qSlicerCoreApplication::ExitNotRequested;
this->CoreCommandOptions = QSharedPointer<qSlicerCoreCommandOptions>(coreCommandOptions);
this->CoreIOManager = QSharedPointer<qSlicerCoreIOManager>(coreIOManager);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment