From a82164505e89dc8257ef87844dfef1476e235a7f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 14 Sep 2020 01:21:49 -0700 Subject: Added nodent support (|) --- utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils.c') diff --git a/utils.c b/utils.c index 5078c01..7844934 100644 --- a/utils.c +++ b/utils.c @@ -46,9 +46,9 @@ const char *after_name(const char *str) */ int matchchar(const char **str, char c) { - *str = after_spaces(*str); - if (**str == c) { - ++(*str); + const char *next = after_spaces(*str); + if (*next == c) { + *str = &next[1]; return 1; } else { return 0; -- cgit v1.2.3