From 433225aa5c972c772c1c63614b12c9be6a42c910 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'term_ascii.c') diff --git a/term_ascii.c b/term_ascii.c index 8a2458c3..ab629026 100644 --- a/term_ascii.c +++ b/term_ascii.c @@ -1,4 +1,4 @@ -/* $Id: term_ascii.c,v 1.31 2014/08/16 19:00:01 schwarze Exp $ */ +/* $Id: term_ascii.c,v 1.32 2014/08/17 22:10:29 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * Copyright (c) 2014 Ingo Schwarze @@ -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 v1.2.3-56-ge451