Browse Source

Silence potentially uninitialized warning

Turns out the warning is wrong, but let's initialize anyways
pull/805/head
Tux3 / Mlkj / !Lev.uXFMLA 11 years ago
parent
commit
6eaf8f272e
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
  1. 2
      src/widget/form/settings/privacyform.cpp

2
src/widget/form/settings/privacyform.cpp

@ -157,7 +157,7 @@ void PrivacyForm::generateRandomNospam() @@ -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.

Loading…
Cancel
Save