Skip to content

Commit 5d59e70

Browse files
committed
Fix compiler warnings about uninitialized data.
1 parent ec97e6f commit 5d59e70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ticks.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ static void *collector(void *arg) {
3939
const useconds_t sleeptime = 1e6 / ticks;
4040

4141
while (1) {
42-
unsigned int stat;
42+
unsigned int stat=0;
4343
getgrbm(&stat);
44-
unsigned int uvd;
44+
unsigned int uvd=0;
4545
if (bits.uvd) getsrbm(&uvd);
46-
unsigned int vce;
46+
unsigned int vce=0;
4747
if (bits.vce0) getsrbm2(&vce);
4848

4949
memset(&history[cur], 0, sizeof(struct bits_t));

0 commit comments

Comments
 (0)