summaryrefslogtreecommitdiff
path: root/lib/getdate.y
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-06-06 19:03:01 +0000
committerJim Meyering <jim@meyering.net>2004-06-06 19:03:01 +0000
commit12c6cc38c23bc840c73e97b070cd094025fcb686 (patch)
tree2a418e7dacbc57e8ae59bab4b54af0901db56175 /lib/getdate.y
parent558c5aa7ffe45f0847428dfc8fa2b529e428b30f (diff)
downloadcoreutils-12c6cc38c23bc840c73e97b070cd094025fcb686.tar.xz
Update from gnulib.
Diffstat (limited to 'lib/getdate.y')
-rw-r--r--lib/getdate.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/getdate.y b/lib/getdate.y
index 52ed8530b..5784b6ccd 100644
--- a/lib/getdate.y
+++ b/lib/getdate.y
@@ -844,7 +844,8 @@ yylex (YYSTYPE *lvalp, parser_control *pc)
if (c == '-' || c == '+')
{
sign = c == '-' ? -1 : 1;
- c = *++pc->input;
+ while (c = *++pc->input, ISSPACE (c))
+ continue;
if (! ISDIGIT (c))
/* skip the '-' sign */
continue;