From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id s35LIKsF032095 for ; Sat, 5 Apr 2014 17:18:20 -0400 (EDT) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.5/8.14.3/Submit) id s35LIKsB023654; Sat, 5 Apr 2014 17:18:20 -0400 (EDT) Date: Sat, 5 Apr 2014 17:18:20 -0400 (EDT) Message-Id: <201404052118.s35LIKsB023654@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: bugfix: make sure all variables are properly initialized when X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- bugfix: make sure all variables are properly initialized when rendering .ll (line length) requests. oops. Modified Files: -------------- mdocml: term.c Revision Data ------------- Index: term.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/term.c,v retrieving revision 1.219 retrieving revision 1.220 diff -Lterm.c -Lterm.c -u -p -r1.219 -r1.220 --- term.c +++ term.c @@ -630,6 +630,8 @@ term_setwidth(struct termp *p, const cha size_t width; int iop; + iop = 0; + width = 0; if (NULL != wstr) { switch (*wstr) { case ('+'): @@ -641,15 +643,13 @@ term_setwidth(struct termp *p, const cha 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); } -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv