summaryrefslogtreecommitdiffstats
path: root/validate.c
diff options
context:
space:
mode:
Diffstat (limited to 'validate.c')
-rw-r--r--validate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/validate.c b/validate.c
index 7d2c0d05..65785042 100644
--- a/validate.c
+++ b/validate.c
@@ -707,7 +707,8 @@ check_text(struct mdoc *mdoc, int line, int pos, const char *p)
if ('\\' != *p)
continue;
- if ((c = mdoc_isescape(p))) {
+ c = mdoc_isescape(p);
+ if (c) {
p += (int)c - 1;
continue;
}