mirror of https://github.com/asterisk/asterisk
Don't pass through a NULL argument to fclose, which is undefined
behavior, and instead return -1 and set errno appropriately. This
also avoids a compiler warning with glibc 2.38 and newer, as glibc
commit 71d9e0fe766a3c22a730995b9d024960970670af
added the nonnull attribute to this argument.
Resolves: #900
(cherry picked from commit b29776a5b0
)
releases/18
parent
d54206221f
commit
6208e9c31c
Loading…
Reference in new issue