cid#1403658: Try harder to make Coverity Scan happy
Change-Id: I109f95a55875b7795fc366825b3a6bb2e897d676
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
#include <sal/config.h>
|
#include <sal/config.h>
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
#include "localebackend.hxx"
|
#include "localebackend.hxx"
|
||||||
@@ -194,6 +195,7 @@ static css::beans::Optional<css::uno::Any> ImplGetLocale(char const * category)
|
|||||||
return {false, {}};
|
return {false, {}};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
assert(cp >= locale);
|
||||||
if (cp - locale > std::numeric_limits<sal_Int32>::max()) {
|
if (cp - locale > std::numeric_limits<sal_Int32>::max()) {
|
||||||
SAL_INFO("shell", "locale env var content too long");
|
SAL_INFO("shell", "locale env var content too long");
|
||||||
return {false, {}};
|
return {false, {}};
|
||||||
|
Reference in New Issue
Block a user