From 563b6160d2ed20120fbb62410a65e03c28537383 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 21 Jul 2014 21:42:08 -0700 Subject: [PATCH] table-paste: Add error-checking assertion to table_paste(). --- src/output/table-paste.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/output/table-paste.c b/src/output/table-paste.c index b56760cd1d..c1054d1369 100644 --- a/src/output/table-paste.c +++ b/src/output/table-paste.c @@ -148,6 +148,8 @@ table_paste (struct table *a, struct table *b, enum table_axis orientation) if (b == NULL) return a; + assert (a->n[!orientation] == b->n[!orientation]); + /* Handle tables that know how to paste themselves. */ if (!table_is_shared (a) && !table_is_shared (b) && a != b) { -- 2.30.2