From 1e2a96b7c0999e4baa71aa7cd9a2e52604e3d03c Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Thu, 18 Sep 2008 20:02:41 +0200 Subject: [PATCH] isl_basic_map_overlying_set: fix possible NULL access --- isl_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/isl_map.c b/isl_map.c index 10aac0b..2b23e03 100644 --- a/isl_map.c +++ b/isl_map.c @@ -2045,9 +2045,9 @@ struct isl_basic_map *isl_basic_map_overlying_set( return (struct isl_basic_map *)bset; } bset = isl_basic_set_cow(bset); - total = bset->dim + bset->extra; if (!bset) goto error; + total = bset->dim + bset->extra; bmap = (struct isl_basic_map *)bset; bmap->nparam = like->nparam; bmap->n_in = like->n_in; -- 2.7.4