source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: additional check needed after the previous (box drawing) patch
@ 2018-11-28 13:44 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2018-11-28 13:44 UTC (permalink / raw)
  To: source

Log Message:
-----------
additional check needed after the previous (box drawing) patch

Modified Files:
--------------
    mandoc:
        tbl_term.c

Revision Data
-------------
Index: tbl_term.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/tbl_term.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -Ltbl_term.c -Ltbl_term.c -u -p -r1.62 -r1.63
--- tbl_term.c
+++ tbl_term.c
@@ -437,11 +437,14 @@ term_tbl(struct termp *tp, const struct 
 				 * but not after the last column.
 				 */
 
-				if (fc == 0 && ((uvert == 0 && dvert == 0 &&
-				     (cp->next == NULL ||
+				if (fc == 0 &&
+				    ((uvert == 0 && dvert == 0 &&
+				      cp != NULL && (cp->next == NULL ||
 				      !IS_HORIZ(cp->next))) ||
-				    tp->tcol + 1 == tp->tcols + tp->lasttcol)) {
-					cp = cp->next;
+				     tp->tcol + 1 ==
+				      tp->tcols + tp->lasttcol)) {
+					if (cp != NULL)
+						cp = cp->next;
 					continue;
 				}
 
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-11-28 13:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-28 13:44 mandoc: additional check needed after the previous (box drawing) patch schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).