iraf-v216 · Code · Issues (50) · Pull requests (81)
iraf.net pull request #126
Check filepointer for NULL in envinit before trying to close.
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
- Check fp for NULL in envinit before trying to close. [a6526bc0]
Last updated on 2017-12-28