diff --git a/desktop/test/deployment/crashextension/crashextension.cxx b/desktop/test/deployment/crashextension/crashextension.cxx index 2e64f3af024b..18ca83e6066c 100644 --- a/desktop/test/deployment/crashextension/crashextension.cxx +++ b/desktop/test/deployment/crashextension/crashextension.cxx @@ -127,7 +127,8 @@ Provider::queryDispatches(css::uno::Sequence con void Provider::dispatch(css::util::URL const&, css::uno::Sequence const&) { // Crash LibreOffice - *((char*)NULL) = 0; + char volatile* p = nullptr; + *p = 0; } cppu::ImplementationEntry const services[]