summaryrefslogtreecommitdiffstats
path: root/mandoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-03-17 09:18:12 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-03-17 09:18:12 +0000
commit8efc30176986c7bf8c728cecbe5daafe5657732b (patch)
tree3ef8fb33d59d174fef02541c6323ce53acc3ac33 /mandoc.c
parente3df96e26436bd256a2aa5a33e49f9166ff6d4b6 (diff)
downloadmandoc-8efc30176986c7bf8c728cecbe5daafe5657732b.tar.gz
Tiny optimisation in mandoc_isdelim() check.
Diffstat (limited to 'mandoc.c')
-rw-r--r--mandoc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mandoc.c b/mandoc.c
index aa934217..2e3caf21 100644
--- a/mandoc.c
+++ b/mandoc.c
@@ -549,9 +549,9 @@ mandoc_isdelim(const char *p)
if ('\\' != p[0])
return(DELIM_NONE);
- if (0 == strcmp(p, "\\."))
+ if (0 == strcmp(p + 1, "."))
return(DELIM_CLOSE);
- if (0 == strcmp(p, "\\*(Ba"))
+ if (0 == strcmp(p + 1, "*(Ba"))
return(DELIM_MIDDLE);
return(DELIM_NONE);