diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-05-11 17:07:32 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-05-11 17:07:32 +0200 |
commit | 99c99e3c7546f98b3d21301e6160772ee9f47fc0 (patch) | |
tree | d9495ebcd325527061b9124160c1f0ea9fb1ac3b /shell/source | |
parent | 06fb2eb7a0a6b73b29e0ca6bb670a8105301198c (diff) |
cid#1403658: Try harder to make Coverity Scan happy
Change-Id: I109f95a55875b7795fc366825b3a6bb2e897d676
Diffstat (limited to 'shell/source')
-rw-r--r-- | shell/source/backends/localebe/localebackend.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/source/backends/localebe/localebackend.cxx b/shell/source/backends/localebe/localebackend.cxx index 32ab8e63c2bb..d51571071ab4 100644 --- a/shell/source/backends/localebe/localebackend.cxx +++ b/shell/source/backends/localebe/localebackend.cxx @@ -19,6 +19,7 @@ #include <sal/config.h> +#include <cassert> #include <limits> #include "localebackend.hxx" @@ -194,6 +195,7 @@ static css::beans::Optional<css::uno::Any> ImplGetLocale(char const * category) return {false, {}}; } } + assert(cp >= locale); if (cp - locale > std::numeric_limits<sal_Int32>::max()) { SAL_INFO("shell", "locale env var content too long"); return {false, {}}; |