1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-27 01:27:39 +01:00

(maps_close): Do nothing if mi->fp is already NULL.

(Logical change 1.71)
This commit is contained in:
hp.com!davidm 2003-03-29 07:32:50 +00:00
parent e6ddf4c3e0
commit cfded02a05

View file

@ -62,6 +62,8 @@ maps_next (struct map_iterator *mi,
static inline void static inline void
maps_close (struct map_iterator *mi) maps_close (struct map_iterator *mi)
{ {
if (!mi->fp)
return;
fclose (mi->fp); fclose (mi->fp);
mi->fp = NULL; mi->fp = NULL;
} }