1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Silence potentially uninitialized warning

Turns out the warning is wrong, but let's initialize anyways
This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-11-18 02:12:19 +01:00
parent 0376302fe7
commit 6eaf8f272e
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -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.