isl_ast_codegen.c: generate_component: avoid invalid access on error path
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 4 Jun 2013 11:40:06 +0000 (13:40 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 4 Jun 2013 11:40:54 +0000 (13:40 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_ast_codegen.c

index 86b9658..dfd634e 100644 (file)
@@ -3210,7 +3210,7 @@ static __isl_give isl_ast_graft_list *generate_component(
        isl_ctx *ctx;
        isl_map *map;
        isl_set *deltas;
-       isl_val *gcd;
+       isl_val *gcd = NULL;
        isl_multi_val *mv;
        int fixed, skip;
        int base;