From 4905719232d81bd54b63165883f19e9aeeef73f4 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sat, 26 Jun 2010 11:23:57 +0200 Subject: [PATCH] isl_convex_hull.c: uset_convex_hull_wrap_bounded: fix error handling --- isl_convex_hull.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/isl_convex_hull.c b/isl_convex_hull.c index 1fd8143b..f8565e03 100644 --- a/isl_convex_hull.c +++ b/isl_convex_hull.c @@ -1808,6 +1808,9 @@ static struct isl_basic_set *uset_convex_hull_wrap_bounded(struct isl_set *set) { struct isl_basic_set *convex_hull = NULL; + if (!set) + goto error; + if (isl_set_n_dim(set) == 0) { convex_hull = isl_basic_set_universe(isl_dim_copy(set->dim)); isl_set_free(set); @@ -1816,9 +1819,6 @@ static struct isl_basic_set *uset_convex_hull_wrap_bounded(struct isl_set *set) } set = isl_set_set_rational(set); - - if (!set) - goto error; set = isl_set_coalesce(set); if (!set) goto error; -- 2.11.4.GIT