projects
/
platform
/
upstream
/
isl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d9cbb3
)
isl_test.c: map_is_equal: check input
author
Sven Verdoolaege
<skimo@kotnet.org>
Fri, 25 Jun 2010 15:08:36 +0000
(17:08 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 26 Jun 2010 15:37:38 +0000
(17:37 +0200)
isl_test.c
patch
|
blob
|
history
diff --git
a/isl_test.c
b/isl_test.c
index
10e942a
..
3e121cd
100644
(file)
--- a/
isl_test.c
+++ b/
isl_test.c
@@
-1092,11
+1092,14
@@
static int common_space(void *first, void *second)
return 2 * depth;
}
-int map_is_equal(__isl_keep isl_map *map, const char *str)
+
static
int map_is_equal(__isl_keep isl_map *map, const char *str)
{
isl_map *map2;
int equal;
+ if (!map)
+ return -1;
+
map2 = isl_map_read_from_str(map->ctx, str, -1);
equal = isl_map_is_equal(map, map2);
isl_map_free(map2);