]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[util] Fix uninitialised-variable warning in einfo.c
authorMichael Brown <mcb30@ipxe.org>
Mon, 22 Oct 2012 15:26:43 +0000 (08:26 -0700)
committerMichael Brown <mcb30@ipxe.org>
Mon, 22 Oct 2012 15:26:43 +0000 (08:26 -0700)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/util/einfo.c

index d83828dfb2ba11bf794322577422428c5361d649..354d475fa2b46aa5806f8d3b39e414eff411ef92 100644 (file)
@@ -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 );
 }