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:
2390fd3
)
isl_output.c: print_set_c: handle NULL input
author
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 2 Dec 2012 14:35:19 +0000
(15:35 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 2 Dec 2012 14:35:19 +0000
(15:35 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_output.c
patch
|
blob
|
history
diff --git
a/isl_output.c
b/isl_output.c
index
d685160
..
a1feb7f
100644
(file)
--- a/
isl_output.c
+++ b/
isl_output.c
@@
-1680,6
+1680,9
@@
static __isl_give isl_printer *print_set_c(__isl_take isl_printer *p,
{
int i;
+ if (!set)
+ return isl_printer_free(p);
+
if (set->n == 0)
p = isl_printer_print_str(p, "0");