aboutsummaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c6
1 files changed, 3 insertions, 3 deletions
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;