]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libuuid: fix test in get_clock()
authorPetr Uzel <petr.uzel@suse.cz>
Mon, 14 Feb 2011 13:43:23 +0000 (14:43 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 16 Feb 2011 15:07:15 +0000 (16:07 +0100)
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
shlibs/uuid/src/gen_uuid.c

index e567b297f5fd69fc732d09601692aa85ba3718f6..a27d49c96d0bdda0ef5629a559c4582d57927d21 100644 (file)
@@ -392,7 +392,7 @@ try_again:
                last.tv_usec = last.tv_usec % 1000000;
        }
 
-       if (state_fd > 0) {
+       if (state_fd >= 0) {
                rewind(state_f);
                len = fprintf(state_f,
                              "clock: %04x tv: %016lu %08lu adj: %08d\n",