X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=polytope_scan.c;h=269bd8154f450c5660a3e0a701c08d3efc2804b1;hb=da725dafa573a0f0a3f2f3189d7f73d2af5c9a86;hp=41983aad3080c9b4ececc51385f0eb37ce742093;hpb=5781fa45d4c0b1b0742e07e05ec419f4ca638c86;p=platform%2Fupstream%2Fisl.git diff --git a/polytope_scan.c b/polytope_scan.c index 41983aa..269bd81 100644 --- a/polytope_scan.c +++ b/polytope_scan.c @@ -11,6 +11,7 @@ #include "isl_equalities.h" #include "isl_seq.h" #include "isl_scan.h" +#include /* 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);