summaryrefslogtreecommitdiffstats
path: root/shlibs
diff options
context:
space:
mode:
authorPetr Uzel2011-02-14 14:43:23 +0100
committerKarel Zak2011-02-16 16:07:15 +0100
commit7491ee6a5a5e9c72c5154022a7151a18a86599cb (patch)
tree698bb13f80a43e0acbb453c105db6e5a2af4760b /shlibs
parentuuidd: fix manpage: libuuid(3) does not exist (diff)
downloadkernel-qcow2-util-linux-7491ee6a5a5e9c72c5154022a7151a18a86599cb.tar.gz
kernel-qcow2-util-linux-7491ee6a5a5e9c72c5154022a7151a18a86599cb.tar.xz
kernel-qcow2-util-linux-7491ee6a5a5e9c72c5154022a7151a18a86599cb.zip
libuuid: fix test in get_clock()
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
Diffstat (limited to 'shlibs')
-rw-r--r--shlibs/uuid/src/gen_uuid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shlibs/uuid/src/gen_uuid.c b/shlibs/uuid/src/gen_uuid.c
index e567b297f..a27d49c96 100644
--- a/shlibs/uuid/src/gen_uuid.c
+++ b/shlibs/uuid/src/gen_uuid.c
@@ -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",