diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-04-09 15:35:30 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-04-09 15:35:30 +0000 |
commit | 7946e286eaa9089a5e43364c3b70ddbbeb5e7224 (patch) | |
tree | e9168994b2010c946e7933cd42e991e69a316bd3 /mandoc.c | |
parent | 523c7db3c47602feb761c95b387c6c93138264f5 (diff) | |
download | mandoc-7946e286eaa9089a5e43364c3b70ddbbeb5e7224.tar.gz |
Lint catching some potential issues.
Diffstat (limited to 'mandoc.c')
-rw-r--r-- | mandoc.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |