mirror of
https://github.com/troglobit/finit.git
synced 2026-11-08 16:11:10 +00:00
plugins: fix possible use of unitialized variable
Found by Coverity Scan Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
612f5a9385
commit
e269176a79
1 file changed
+2
-1
+2
-1
@@ -82,9 +82,10 @@ static void setup(void *arg)
|
|||||||
len = fwrite(buf, sizeof(buf[0]), len, fp);
|
len = fwrite(buf, sizeof(buf[0]), len, fp);
|
||||||
fclose(hw);
|
fclose(hw);
|
||||||
} else {
|
} else {
|
||||||
|
no_hwrng:
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
int iter = 128;
|
int iter = 128;
|
||||||
no_hwrng:
|
|
||||||
gettimeofday(&tv, NULL);
|
gettimeofday(&tv, NULL);
|
||||||
srandom(tv.tv_sec % 3600);
|
srandom(tv.tv_sec % 3600);
|
||||||
while (iter--) {
|
while (iter--) {
|
||||||
|
|||||||
Reference in new issue
Block a user