From: Sven Verdoolaege Date: Wed, 1 Sep 2010 14:35:56 +0000 (+0200) Subject: isl_polytope_scan: improve error handling X-Git-Tag: isl-0.04~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=67550660e816eea6748a904cbf82a6501bc10432;p=platform%2Fupstream%2Fisl.git isl_polytope_scan: improve error handling Signed-off-by: Sven Verdoolaege --- diff --git a/polytope_scan.c b/polytope_scan.c index 41983aa..fbd80ae 100644 --- a/polytope_scan.c +++ b/polytope_scan.c @@ -72,6 +72,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);