-/* $Id: term.c,v 1.219 2014/03/30 21:28:01 schwarze Exp $ */
+/* $Id: term.c,v 1.220 2014/04/05 21:18:19 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
size_t width;
int iop;
+ iop = 0;
+ width = 0;
if (NULL != wstr) {
switch (*wstr) {
case ('+'):
wstr++;
break;
default:
- iop = 0;
break;
}
- if ( ! a2roffsu(wstr, &su, SCALE_MAX)) {
- wstr = NULL;
+ if (a2roffsu(wstr, &su, SCALE_MAX))
+ width = term_hspan(p, &su);
+ else
iop = 0;
- }
}
- width = (NULL != wstr) ? term_hspan(p, &su) : 0;
(*p->setwidth)(p, iop, width);
}