summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-01-22 19:41:33 +0000
committerJim Meyering <jim@meyering.net>1993-01-22 19:41:33 +0000
commit2694667b8df009082bdf526f4c78e3572759e86c (patch)
treeb0d79af470d3d33614b81124307b61626b93c890
parentb53876554779e7778b84f11abc65a5fbcf5e3971 (diff)
downloadcoreutils-2694667b8df009082bdf526f4c78e3572759e86c.tar.xz
IS* macros may not be given arguments with side effects.
-rw-r--r--src/pr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pr.c b/src/pr.c
index c49819d80..1abb686bb 100644
--- a/src/pr.c
+++ b/src/pr.c
@@ -455,7 +455,8 @@ main (argc, argv)
s = optarg;
if (*s == '+')
{
- if (!ISDIGIT (*++s))
+ ++s;
+ if (!ISDIGIT (*s))
usage ("`+' requires a numeric argument");
first_page_number = atoi (s);
}