isl_convex_hull.c: isl_basic_set_add_equality: avoid NULL pointer dereference
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 25 Jun 2010 15:12:42 +0000 (17:12 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Sat, 26 Jun 2010 15:37:38 +0000 (17:37 +0200)
isl_convex_hull.c

index 4a82e6a..cf3cfbf 100644 (file)
@@ -213,6 +213,9 @@ static struct isl_basic_set *isl_basic_set_add_equality(
        int i;
        unsigned dim;
 
+       if (!bset)
+               return NULL;
+
        if (ISL_F_ISSET(bset, ISL_BASIC_SET_EMPTY))
                return bset;