summaryrefslogtreecommitdiffstats
path: root/term_ascii.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-17 22:10:29 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-17 22:10:29 +0000
commit63484eb541a34de6d744faf8b22686be28597c50 (patch)
tree23b6d85e7d6d501ff5a9c5571d9ec7b8c67b8b21 /term_ascii.c
parent4da5ea5d8afa34e19cafd7ec5d900ab5d76f2829 (diff)
downloadmandoc-63484eb541a34de6d744faf8b22686be28597c50.tar.gz
While all current callers pass valid data to ascii_hspan() only,
it's safer to assume incoming enum data might be invalid and catch it instead of happily returning an unitialized int. No functional change right now.
Diffstat (limited to 'term_ascii.c')
-rw-r--r--term_ascii.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/term_ascii.c b/term_ascii.c
index 248a6ca4..753cc832 100644
--- a/term_ascii.c
+++ b/term_ascii.c
@@ -253,7 +253,7 @@ ascii_hspan(const struct termp *p, const struct roffsu *su)
case SCALE_EM:
r = su->scale;
break;
- case SCALE_MAX:
+ default:
abort();
/* NOTREACHED */
}