summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorMichael Brown2012-10-22 17:26:43 +0200
committerMichael Brown2012-10-22 17:26:43 +0200
commita27413c82a29a9d35a72e0d789f1f17fd9910739 (patch)
tree189dec49196d4defe611a4b4086b2da830a3372c /src/util
parent[test] Remove self-test for empty formatted setting value (diff)
downloadipxe-a27413c82a29a9d35a72e0d789f1f17fd9910739.tar.gz
ipxe-a27413c82a29a9d35a72e0d789f1f17fd9910739.tar.xz
ipxe-a27413c82a29a9d35a72e0d789f1f17fd9910739.zip
[util] Fix uninitialised-variable warning in einfo.c
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/einfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util/einfo.c b/src/util/einfo.c
index d83828df..354d475f 100644
--- a/src/util/einfo.c
+++ b/src/util/einfo.c
@@ -93,10 +93,11 @@ static void einfo ( const char *infile,
( ( ( char * ) einfo ) + einfo->desc ) );
}
+ /* Unmap file */
+ munmap ( start, len );
}
- /* Unmap and close file */
- munmap ( start, len );
+ /* Close file */
close ( fd );
}