From: Sven Verdoolaege Date: Tue, 17 Apr 2012 10:34:22 +0000 (+0200) Subject: isl_basic_set_total_dim: handle NULL input X-Git-Tag: isl-0.10~8^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c1697481a4da812d57a9fc688529c76eef6db801;p=platform%2Fupstream%2Fisl.git isl_basic_set_total_dim: handle NULL input Signed-off-by: Sven Verdoolaege --- diff --git a/isl_map.c b/isl_map.c index b0f5100..e0defa7 100644 --- a/isl_map.c +++ b/isl_map.c @@ -122,6 +122,8 @@ unsigned isl_basic_set_n_param(__isl_keep isl_basic_set *bset) unsigned isl_basic_set_total_dim(const struct isl_basic_set *bset) { + if (!bset) + return 0; return isl_space_dim(bset->dim, isl_dim_all) + bset->n_div; }