Set Start from nowtime, not now->time, which may not be set
authortholo <tholo@openbsd.org>
Sat, 4 May 1996 07:32:22 +0000 (07:32 +0000)
committertholo <tholo@openbsd.org>
Sat, 4 May 1996 07:32:22 +0000 (07:32 +0000)
gnu/usr.bin/cvs/lib/getdate.c
gnu/usr.bin/cvs/lib/getdate.y

index d7b9ccc..a9acf1d 100644 (file)
@@ -768,7 +768,7 @@ get_date(p, now)
            return -1;
     }
     else {
-       Start = now->time;
+       Start = nowtime;
        if (!yyHaveRel)
            Start -= ((tm->tm_hour * 60L + tm->tm_min) * 60L) + tm->tm_sec;
     }
index baa1731..f538ef4 100644 (file)
@@ -949,7 +949,7 @@ get_date(p, now)
            return -1;
     }
     else {
-       Start = now->time;
+       Start = nowtime;
        if (!yyHaveRel)
            Start -= ((tm->tm_hour * 60L + tm->tm_min) * 60L) + tm->tm_sec;
     }