Do not dereference a NULL pointer in tab_for_lexmin
commita9e989f52802ce6e2ca98eef4bf131ffdb0b2634
authorTobias Grosser <tobias@grosser.es>
Sun, 9 Mar 2014 23:41:45 +0000 (10 00:41 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 10 Mar 2014 08:15:52 +0000 (10 09:15 +0100)
tree4c054473ff9065de09dee571c703da7abb4678f3
parent4e7ab145e0bbf16b55f7848517aa3b787ebeb2af
Do not dereference a NULL pointer in tab_for_lexmin

When using the compute-out feature, we may return a tab that is NULL.
By caching the offset and the length of the sequence we want to negate,
we avoid a segfault that we previously run into when deriving values
for the number of dimensions from the tab due to the tab pointer being
NULL.

Signed-off-by: Tobias Grosser <tobias@grosser.es>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_tab_pip.c