diff --git a/src/slug.c b/src/slug.c index 3ad848b..e729a9e 100644 --- a/src/slug.c +++ b/src/slug.c @@ -154,9 +154,9 @@ int slug_count(const char * needle, int len, char **errstr) { char * p = (char*) needle; while( (p-needle) < len) { - if (*p == '\\' ) { p++; p++; + continue; } if (state == 1 && *p == '}') {