View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum ↗

iraf-v216 · Code · Issues (50) · Pull requests (81)

iraf.net pull request #126

Check filepointer for NULL in envinit before trying to close.

merge olebole merged 1 commit to iraf-community/iraf


olebole commented on 2017-12-28

When a file to be opened could not be found, the outer loop in the function is left via break, but then the file pointer fp is tried to be closed, which leads to a segementation fault (since it is NULL).

This patch checks the file pointer to be not NULL before closing and fixes this.


Commits


Last updated on 2017-12-28