summaryrefslogtreecommitdiff
path: root/isl_tab.c
diff options
context:
space:
mode:
authorSven Verdoolaege <skimo@kotnet.org>2012-12-02 17:37:17 +0100
committerSven Verdoolaege <skimo@kotnet.org>2012-12-02 17:37:17 +0100
commitb35a6a202fe8bd218af5152420e1dabeb79f10d4 (patch)
treed3105b33ade4a315e9fd8e2ec339de08065e5325 /isl_tab.c
parentac2143d72da8f1e1f35d0870d8ef8b0cd16bda7b (diff)
downloadisl-b35a6a202fe8bd218af5152420e1dabeb79f10d4.tar.gz
isl-b35a6a202fe8bd218af5152420e1dabeb79f10d4.tar.bz2
isl-b35a6a202fe8bd218af5152420e1dabeb79f10d4.zip
isl_tab.c: push_union: handle NULL input
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
Diffstat (limited to 'isl_tab.c')
-rw-r--r--isl_tab.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/isl_tab.c b/isl_tab.c
index 6089f3a1..3fc0367f 100644
--- a/isl_tab.c
+++ b/isl_tab.c
@@ -787,6 +787,8 @@ static int push_union(struct isl_tab *tab,
{
struct isl_tab_undo *undo;
+ if (!tab)
+ return -1;
if (!tab->need_undo)
return 0;