isl_convex_hull.c: initial_facet_constraint: avoid invalid access on error path
authorSven Verdoolaege <skimo@kotnet.org>
Sat, 15 Sep 2012 08:19:56 +0000 (10:19 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sat, 15 Sep 2012 08:19:56 +0000 (10:19 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_convex_hull.c

index c75d77f..8162d4f 100644 (file)
@@ -483,7 +483,7 @@ static __isl_give isl_mat *initial_facet_constraint(__isl_keep isl_set *set)
        int i;
        unsigned dim = isl_set_n_dim(set);
        int is_bound;
-       isl_mat *bounds;
+       isl_mat *bounds = NULL;
 
        isl_assert(set->ctx, set->n > 0, goto error);
        bounds = isl_mat_alloc(set->ctx, 1, 1 + dim);