diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-13 14:57:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-13 21:14:34 +0200 |
commit | acb0cdeedafc5fd38703d4a0a545a33058f1673f (patch) | |
tree | 8700522058d85e7174f42419433b79ba4adc47ba /sal/rtl | |
parent | b6491f09e9dc3e41d571abce3c4f16467cb60c9c (diff) |
loplugin:sequentialassign in sal
Change-Id: I7bd1511a6acc105ab5b42c698c7578cfb9ce06b4
Reviewed-on: https://gerrit.libreoffice.org/70708
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sal/rtl')
-rw-r--r-- | sal/rtl/random.cxx | 4 |
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]; |