From 7f51d6fa0d6d38532cee447ffc65dea4b3583d7c Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Mon, 18 Feb 2013 00:28:22 -0600 Subject: coverity#707601 Uninitialized pointer field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I1b7c13be91bd2047a4141b6d7d8e4363b0ddcf4f Reviewed-on: https://gerrit.libreoffice.org/2211 Tested-by: Caolán McNamara Reviewed-by: Caolán McNamara --- accessibility/source/standard/vclxaccessiblemenubar.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'accessibility') 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; + } } // ----------------------------------------------------------------------------- -- cgit