fix isl_union_{set,map}_lex_g{e,t}_union_map
[platform/upstream/isl.git] / polytope_scan.c
index 41983aa..269bd81 100644 (file)
@@ -11,6 +11,7 @@
 #include "isl_equalities.h"
 #include "isl_seq.h"
 #include "isl_scan.h"
+#include <isl_mat_private.h>
 
 /* The input of this program is the same as that of the "polytope_scan"
  * program from the barvinok distribution.
@@ -72,6 +73,9 @@ static struct isl_mat *isl_basic_set_samples(struct isl_basic_set *bset)
        struct isl_mat *T;
        struct isl_mat *samples;
 
+       if (!bset)
+               return NULL;
+
        if (bset->n_eq == 0)
                return isl_basic_set_scan_samples(bset);