isl_basic_set_opt: avoid invalid access on error path
[platform/upstream/isl.git] / basis_reduction_templ.c
index f4c50ed..7f4b28f 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright 2006-2007 Universiteit Leiden
  * Copyright 2008-2009 Katholieke Universiteit Leuven
  *
- * Use of this software is governed by the GNU LGPLv2.1 license
+ * Use of this software is governed by the MIT license
  *
  * Written by Sven Verdoolaege, Leiden Institute of Advanced Computer Science,
  * Universiteit Leiden, Niels Bohrweg 1, 2333 CA Leiden, The Netherlands
@@ -329,7 +329,7 @@ struct isl_mat *isl_basic_set_reduced_basis(struct isl_basic_set *bset)
                isl_die(bset->ctx, isl_error_invalid,
                        "no parameters allowed", return NULL);
 
-       tab = isl_tab_from_basic_set(bset);
+       tab = isl_tab_from_basic_set(bset, 0);
        if (!tab)
                return NULL;