aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--miscutils/dc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/dc.c b/miscutils/dc.c
index 5e367fe68..451423c62 100644
--- a/miscutils/dc.c
+++ b/miscutils/dc.c
@@ -168,7 +168,7 @@ static char *get_token(char **buffer)
while (isspace(*current)) { current++; }
if (*current != 0) {
start = current;
- while (!isspace(*current) && current != 0) { current++; }
+ while (!isspace(*current) && *current != 0) { current++; }
*buffer = current;
}
return start;