From 40e6083433d3fefa9ad9ac7088359731a348d023 Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Tue, 30 Aug 2011 14:14:15 +0200 Subject: [PATCH] bernstein_coefficients_cell: handle NULL poly Signed-off-by: Sven Verdoolaege --- isl_bernstein.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/isl_bernstein.c b/isl_bernstein.c index 1458e27..7358b71 100644 --- a/isl_bernstein.c +++ b/isl_bernstein.c @@ -255,6 +255,9 @@ static int bernstein_coefficients_cell(__isl_take isl_cell *cell, void *user) isl_set *dom; isl_ctx *ctx; + if (!poly) + goto error; + nvar = isl_qpolynomial_dim(poly, isl_dim_set) - 1; n_vertices = cell->n_vertices; -- 2.7.4