From: tholo Date: Sat, 4 May 1996 07:32:22 +0000 (+0000) Subject: Set Start from nowtime, not now->time, which may not be set X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=705ce81c2f87efd44fdafe973c56ce2aac0acdd9;p=openbsd Set Start from nowtime, not now->time, which may not be set --- diff --git a/gnu/usr.bin/cvs/lib/getdate.c b/gnu/usr.bin/cvs/lib/getdate.c index d7b9cccf83c..a9acf1dacbc 100644 --- a/gnu/usr.bin/cvs/lib/getdate.c +++ b/gnu/usr.bin/cvs/lib/getdate.c @@ -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; } diff --git a/gnu/usr.bin/cvs/lib/getdate.y b/gnu/usr.bin/cvs/lib/getdate.y index baa17315373..f538ef4237e 100644 --- a/gnu/usr.bin/cvs/lib/getdate.y +++ b/gnu/usr.bin/cvs/lib/getdate.y @@ -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; }