diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-05 16:21:53 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-05 20:41:04 +0000 |
commit | 7eaa311ce2d917ac961eac0a26a7ced90dffdf40 (patch) | |
tree | c625afb3e1509d4befc02835f57ff63248e1f0e5 /sd | |
parent | e59e188404b2666ee04080bd46dc56e05b810d4f (diff) |
coverity#704747 Dereference after null check
Change-Id: I1da494393c3a1a697bf31b00f57b33a03c674872
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/func/fuchar.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sd/source/ui/func/fuchar.cxx b/sd/source/ui/func/fuchar.cxx index 95d3027fd013..d9549b1e7dd2 100644 --- a/sd/source/ui/func/fuchar.cxx +++ b/sd/source/ui/func/fuchar.cxx @@ -72,13 +72,15 @@ void FuChar::DoExecute( SfxRequest& rReq ) SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create(); SfxAbstractTabDialog* pDlg = pFact ? pFact->CreateSdTabCharDialog( NULL, &aNewAttr, mpDoc->GetDocSh() ) : 0; + sal_uInt16 nResult = RET_CANCEL; if( pDlg ) { if (rReq.GetSlot() == SID_CHAR_DLG_EFFECT) { pDlg->SetCurPageId(RID_SVXPAGE_CHAR_EFFECTS); } - sal_uInt16 nResult = pDlg->Execute(); + + nResult = pDlg->Execute(); if( nResult == RET_OK ) { @@ -87,11 +89,10 @@ void FuChar::DoExecute( SfxRequest& rReq ) } delete pDlg; - - if( nResult != RET_OK ) - { - return; - } + } + if( nResult != RET_OK ) + { + return; } } mpView->SetAttributes(*pArgs); |