From 20c6a84f7c5204cc078dc0ae94193c47a851d735 Mon Sep 17 00:00:00 2001 From: c9s Date: Mon, 2 Jun 2014 07:10:31 +0800 Subject: [PATCH] continue when escape --- src/slug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 == '}') {