]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Strip runs
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 18 Sep 2020 19:57:04 +0000 (14:57 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 18 Sep 2020 19:57:10 +0000 (14:57 -0500)
scripts/jlibtool.c

index 172be30a82ca18ce2a2096e36c1461776160a60f..697337871227bace44032c634758403a94790420 100644 (file)
@@ -425,7 +425,7 @@ static void strip_double_chars(char *str, char c)
        char    *end = p + len;
 
        while (p < end) {
-               if ((p[0] == c) && (p[1] == c)) p++;
+               while ((p[0] == c) && (p[1] == c)) p++;
                *out++ = *p++;
        }
        *out = '\0';