From 6eaf8f272eb17ecbc41c3652430655eedad7d245 Mon Sep 17 00:00:00 2001 From: "Tux3 / Mlkj / !Lev.uXFMLA" Date: Tue, 18 Nov 2014 02:12:19 +0100 Subject: [PATCH] Silence potentially uninitialized warning Turns out the warning is wrong, but let's initialize anyways --- src/widget/form/settings/privacyform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/form/settings/privacyform.cpp b/src/widget/form/settings/privacyform.cpp index 00c914091..928ed7538 100644 --- a/src/widget/form/settings/privacyform.cpp +++ b/src/widget/form/settings/privacyform.cpp @@ -157,7 +157,7 @@ void PrivacyForm::generateRandomNospam() QTime time = QTime::currentTime(); qsrand((uint)time.msec()); - uint32_t newNospam; + uint32_t newNospam{0}; for (int i = 0; i < 4; i++) newNospam = (newNospam<<8) + (qrand() % 256); // Generate byte by byte. For some reason.