diff options
author | Michael Brown <mcb30@ipxe.org> | 2012-10-22 08:26:43 -0700 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2012-10-22 08:26:43 -0700 |
commit | a27413c82a29a9d35a72e0d789f1f17fd9910739 (patch) | |
tree | 189dec49196d4defe611a4b4086b2da830a3372c /src/util | |
parent | 34a81da0c8dd47628a7408cd3f8d8a926d1ecbee (diff) | |
download | ipxe-a27413c82a29a9d35a72e0d789f1f17fd9910739.tar.gz |
[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.c | 5 |
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 ); } |