isl_space_find_dim_by_name: check that dimension has id before accessing name
commit4d4da5d0e30478ce8c682a30aef7a40520026f4e
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 21 Jun 2016 10:47:53 +0000 (21 12:47 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 21 Jun 2016 10:47:53 +0000 (21 12:47 +0200)
tree73094e6756062938160cfcd28906d677d4d0d22a
parenta08491913568e60e4baea1d973ad53f55341783f
isl_space_find_dim_by_name: check that dimension has id before accessing name

The entries in space->ids may be NULL if no identifier has been set
for the corresponding dimension.  Check that there is an identifier
before accessing the name of the identifier.

Reported-by: Siddharth Bhat <siddu.druid@gmail.com>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_space.c