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:
f4c9a6a
)
isl_dim_equal: handle NULL input
author
Sven Verdoolaege
<skimo@kotnet.org>
Wed, 10 Aug 2011 17:31:30 +0000
(19:31 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Thu, 11 Aug 2011 08:12:22 +0000
(10:12 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_dim.c
patch
|
blob
|
history
diff --git
a/isl_dim.c
b/isl_dim.c
index
9f9e55c
..
b850384
100644
(file)
--- a/
isl_dim.c
+++ b/
isl_dim.c
@@
-1037,6
+1037,8
@@
unsigned isl_dim_total(struct isl_dim *dim)
int isl_dim_equal(struct isl_dim *dim1, struct isl_dim *dim2)
{
+ if (!dim1 || !dim2)
+ return -1;
return match(dim1, isl_dim_param, dim2, isl_dim_param) &&
isl_dim_tuple_match(dim1, isl_dim_in, dim2, isl_dim_in) &&
isl_dim_tuple_match(dim1, isl_dim_out, dim2, isl_dim_out);