From f302d9cea67a3d7a7e97e1d2c1c87ed622ccec65 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Wed, 21 Oct 2009 21:04:26 +0200 Subject: [PATCH] isl_tab_compute_reduced_basis: handle empty tables --- basis_reduction_templ.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/basis_reduction_templ.c b/basis_reduction_templ.c index bd5f842..7481798 100644 --- a/basis_reduction_templ.c +++ b/basis_reduction_templ.c @@ -60,6 +60,9 @@ struct isl_tab *isl_tab_compute_reduced_basis(struct isl_tab *tab) if (!tab) return NULL; + if (tab->empty) + return tab; + ctx = tab->mat->ctx; dim = tab->n_var; B = tab->basis; -- 2.7.4