diff --git a/leapdb.c b/leapdb.c index e4b2f9f..c5da0ad 100644 --- a/leapdb.c +++ b/leapdb.c @@ -124,7 +124,7 @@ get_list_leap(time_t when, int *tai_offset) /* leap-seconds.list timestamps are relative to 1 Jan 1900, 00:00:00 */ when1900 = (int64_t)when + LEAP_SEC_LIST_OFFSET; - while (fgets(line, sizeof line, f) > 0) { + while (fgets(line, sizeof line, f)) { int64_t lsl_when; int lsl_tai_offset; char *p;