diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-08-13 16:22:30 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-08-13 22:15:42 +0200 |
commit | 9a26c243a8c81724b557355471818f7fe238ed64 (patch) | |
tree | 0615f0d3d5cd7bfc899c7d0b8e806d853580da87 /unotools | |
parent | 98cf7063dfda2e4958145c5b0f25d91200270864 (diff) |
short-circuit IsFuzzing when FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION defined
Change-Id: Ib82daad19185de3d271adee3cdb6d39a35e9c082
Reviewed-on: https://gerrit.libreoffice.org/58941
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/config/configmgr.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/unotools/source/config/configmgr.cxx b/unotools/source/config/configmgr.cxx index 664282e289d9..d07f6c164598 100644 --- a/unotools/source/config/configmgr.cxx +++ b/unotools/source/config/configmgr.cxx @@ -199,10 +199,12 @@ void utl::ConfigManager::doStoreConfigItems() { static bool bIsFuzzing = false; +#if !defined(FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION) bool utl::ConfigManager::IsFuzzing() { return bIsFuzzing; } +#endif void utl::ConfigManager::EnableFuzzing() { |