]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
libuuid: don't use unitialized variable
authorMatthias Koenig <mkoenig@suse.de>
Tue, 6 May 2008 11:38:31 +0000 (13:38 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 12 May 2008 00:41:15 +0000 (20:41 -0400)
Signed-off-by: Matthias Koenig <mkoenig@suse.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/uuid/gen_uuid.c

index cf2b5a6f3c1814c4434cadf6f786dcea37c07dbb..fd9314d9ac8ffa26e747668e4e8bfc27b5995a01 100644 (file)
@@ -316,7 +316,7 @@ static int get_clock(uint32_t *clock_high, uint32_t *clock_low,
        if ((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--;
        }