summaryrefslogtreecommitdiff
path: root/sal/rtl
diff options
context:
space:
mode:
Diffstat (limited to 'sal/rtl')
-rw-r--r--sal/rtl/random.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sal/rtl/random.cxx b/sal/rtl/random.cxx
index 836d30889b80..c9cc0f841ea9 100644
--- a/sal/rtl/random.cxx
+++ b/sal/rtl/random.cxx
@@ -237,10 +237,8 @@ static void readPool (
rtlRandomPool SAL_CALL rtl_random_createPool() SAL_THROW_EXTERN_C()
{
- RandomPool_Impl *pImpl = nullptr;
-
/* try to get system random number, if it fail fall back on own pool */
- pImpl = static_cast< RandomPool_Impl* >(rtl_allocateZeroMemory(sizeof(RandomPool_Impl)));
+ RandomPool_Impl *pImpl = static_cast< RandomPool_Impl* >(rtl_allocateZeroMemory(sizeof(RandomPool_Impl)));
if (pImpl)
{
char sanity[4];