isl_basic_set_opt: avoid invalid access on error path
[platform/upstream/isl.git] / polyhedron_minimize.c
index f6c2dc9..bb9dabe 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2008-2009 Katholieke Universiteit Leuven
  *
- * Use of this software is governed by the GNU LGPLv2.1 license
+ * Use of this software is governed by the MIT license
  *
  * Written by Sven Verdoolaege, K.U.Leuven, Departement
  * Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
@@ -65,7 +65,7 @@ int main(int argc, char **argv)
        isl_printer *p;
 
        isl_int_init(opt);
-       bset = isl_basic_set_read_from_file(ctx, stdin, 0);
+       bset = isl_basic_set_read_from_file(ctx, stdin);
        assert(bset);
        obj = isl_vec_read_from_file(ctx, stdin);
        assert(obj);