diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2013-02-18 00:28:22 -0600 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-02-18 15:34:48 +0000 |
commit | 7f51d6fa0d6d38532cee447ffc65dea4b3583d7c (patch) | |
tree | 04db849fc90a10d381f71061817c5f61808586fb /accessibility | |
parent | 2c570973cc9e206539e7177efcac27569deef62d (diff) |
coverity#707601 Uninitialized pointer field
Change-Id: I1b7c13be91bd2047a4141b6d7d8e4363b0ddcf4f
Reviewed-on: https://gerrit.libreoffice.org/2211
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/standard/vclxaccessiblemenubar.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/accessibility/source/standard/vclxaccessiblemenubar.cxx b/accessibility/source/standard/vclxaccessiblemenubar.cxx index 6f9f6a98aa02..3a11316e0d6a 100644 --- a/accessibility/source/standard/vclxaccessiblemenubar.cxx +++ b/accessibility/source/standard/vclxaccessiblemenubar.cxx @@ -45,6 +45,10 @@ VCLXAccessibleMenuBar::VCLXAccessibleMenuBar( Menu* pMenu ) if ( m_pWindow ) m_pWindow->AddEventListener( LINK( this, VCLXAccessibleMenuBar, WindowEventListener ) ); } + else + { + m_pWindow = 0; + } } // ----------------------------------------------------------------------------- |