desktop/test/deployment/crashextension/crashextension.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 493e37d16ce673560ab4309f91308cd5a99944d1 Author: Stephan Bergmann <[email protected]> AuthorDate: Sun Mar 16 22:30:35 2025 +0100 Commit: Stephan Bergmann <[email protected]> CommitDate: Mon Mar 17 07:53:47 2025 +0100 Avoid -Werror,-Wnull-dereference Change-Id: Ibfc0111a61817b7cf8c5b60d3f9563fd3cf05c5c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183011 Reviewed-by: Stephan Bergmann <[email protected]> Tested-by: Jenkins 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<css::frame::DispatchDescriptor> con void Provider::dispatch(css::util::URL const&, css::uno::Sequence<css::beans::PropertyValue> const&) { // Crash LibreOffice - *((char*)NULL) = 0; + char volatile* p = nullptr; + *p = 0; } cppu::ImplementationEntry const services[]
