aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vppinfra/maplog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vppinfra/maplog.c b/src/vppinfra/maplog.c
index 3664364a9e1..94cc9ac11a8 100644
--- a/src/vppinfra/maplog.c
+++ b/src/vppinfra/maplog.c
@@ -86,7 +86,7 @@ clib_maplog_init (clib_maplog_main_t * mm, char *file_basename,
return rv;
fail:
- if (fd)
+ if (fd >= 0)
(void) close (fd);
for (i = 0; i < 2; i++)