From 63484eb541a34de6d744faf8b22686be28597c50 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 17 Aug 2014 22:10:29 +0000 Subject: 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. --- term_ascii.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'term_ascii.c') 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 */ } -- cgit