mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-11 18:41:14 +00:00
Fix uninitialized presenter (#525)
This commit is contained in:
parent
af9f7cd791
commit
b2156c94bf
@ -671,14 +671,14 @@ MxLong RegistrationBook::HandlePathStruct(LegoPathStructNotificationParam& p_par
|
||||
MxBool RegistrationBook::CreateSurface()
|
||||
{
|
||||
MxCompositePresenterList* presenters = m_checkmark[0]->GetList();
|
||||
MxStillPresenter *presenter, *uninitialized;
|
||||
MxStillPresenter* presenter;
|
||||
|
||||
if (presenters) {
|
||||
if (presenters->begin() != presenters->end()) {
|
||||
presenter = (MxStillPresenter*) presenters->front();
|
||||
}
|
||||
else {
|
||||
presenter = uninitialized; // intentionally uninitialized variable
|
||||
presenter = NULL;
|
||||
}
|
||||
|
||||
if (presenter) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user