diff --git a/top/top.c b/top/top.c index 2aded0b5..d0fe2784 100644 --- a/top/top.c +++ b/top/top.c @@ -3308,7 +3308,7 @@ static void parse_args (char **args) { // advance cp and jump over any numerical args used above if (*cp) cp += strspn(&cp[1], numbs_str); bump_cp: - ++cp; + if (*cp) ++cp; } // end: while (*cp) } // end: while (*args)