From acb0cdeedafc5fd38703d4a0a545a33058f1673f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 13 Apr 2019 14:57:07 +0200 Subject: loplugin:sequentialassign in sal Change-Id: I7bd1511a6acc105ab5b42c698c7578cfb9ce06b4 Reviewed-on: https://gerrit.libreoffice.org/70708 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sal/rtl/random.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sal/rtl') 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]; -- cgit