cuda.c: print_reverse_list: improve error handling
commit09756941d95e16e993a0833b994c1dea196cb56b
authorSven Verdoolaege <skimo@kotnet.org>
Thu, 11 Feb 2016 13:30:20 +0000 (11 14:30 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Thu, 11 Feb 2016 14:42:49 +0000 (11 15:42 +0100)
tree06c532e7dab7b85b5b4b6833c5a4c18321fe2ced
parente486fd2fbae493d719ed223012b66ec19ef9c3fd
cuda.c: print_reverse_list: improve error handling

If some error has occurred, then the printer in the caller will be NULL,
in which case isl_printer_get_file will return NULL as well.
Handle this case inside print_reverse_list by not doing anything
in case of a NULL FILE * input argument.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
cuda.c