summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-04-09 15:35:30 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-04-09 15:35:30 +0000
commit7946e286eaa9089a5e43364c3b70ddbbeb5e7224 (patch)
treee9168994b2010c946e7933cd42e991e69a316bd3
parent523c7db3c47602feb761c95b387c6c93138264f5 (diff)
downloadmandoc-7946e286eaa9089a5e43364c3b70ddbbeb5e7224.tar.gz
Lint catching some potential issues.
-rw-r--r--mandoc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mandoc.c b/mandoc.c
index e53b19f2..4b2bd3f3 100644
--- a/mandoc.c
+++ b/mandoc.c
@@ -116,10 +116,9 @@ mandoc_escape(const char **end, const char **start, int *sz)
rstart = cp;
if (start)
*start = rstart;
- i = 0;
+ i = lim = 0;
gly = ESCAPE_ERROR;
- term = '\0';
- numeric = 0;
+ term = numeric = '\0';
switch ((c = cp[i++])) {
/*
@@ -379,6 +378,7 @@ out:
gly = ESCAPE_FONTROMAN;
break;
}
+ break;
case (ESCAPE_SPECIAL):
if (1 != rlim)
break;