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:
parent
0376302fe7
commit
6eaf8f272e
|
@ -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…
Reference in New Issue
Block a user