libuuid: don't use unitialized variable
PATCH 1/1 libuuid: don't use unitialized variable
Hi,
tv is not initialized before the assigment to last.
Signed-off-by Matthias Koenig <[email protected]>
lib/uuid/gen_uuid.c +1 -1
@@ -316,7 +316,7 @@ static int get_clock(uint32_t *clock_higif ((last.tv_sec ==0 ) && (last.tv_usec ==0 )) {get_random_bytes (&clock_seq,sizeof (clock_seq)); clock_seq &=0x3FFF ; - last = tv; +gettimeofday (&last,0 ); last.tv_sec--; }
Theodore Tso
AppliedQuoted 5 lines · Matthias Koenig
Hi,
tv is not initialized before the assigment to last.
Signed-off-by Matthias Koenig <[email protected]>
Thanks, applied.
- Ted