mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-23 07:57:38 +01:00
(maps_close): Do nothing if mi->fp is already NULL.
(Logical change 1.71)
This commit is contained in:
parent
e6ddf4c3e0
commit
cfded02a05
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue