From 2cdc238a73c9b1a9e4721efd105ad1d41fda218f Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Fri, 22 Sep 2023 16:57:59 -0300 Subject: [PATCH] Deference + increment pointer on single line --- src/isinetaddr6.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/isinetaddr6.c b/src/isinetaddr6.c index 0aeaddf..4e404f4 100644 --- a/src/isinetaddr6.c +++ b/src/isinetaddr6.c @@ -55,10 +55,9 @@ static int has_consecutive_chars(const char *str, char c, int n) { for (int i = 0; i < n; i++) { - if (*str != c) { + if (*str++ != c) { return 0; } - str++; } return 1; }