Browse Source

[util] Fix uninitialised-variable warning in einfo.c

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
a27413c82a
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      src/util/einfo.c

+ 3
- 2
src/util/einfo.c View File

93
 				 ( ( ( char * ) einfo ) + einfo->desc ) );
93
 				 ( ( ( char * ) einfo ) + einfo->desc ) );
94
 		}
94
 		}
95
 
95
 
96
+		/* Unmap file */
97
+		munmap ( start, len );
96
 	}
98
 	}
97
 
99
 
98
-	/* Unmap and close file */
99
-	munmap ( start, len );
100
+	/* Close file */
100
 	close ( fd );
101
 	close ( fd );
101
 }
102
 }
102
 
103
 

Loading…
Cancel
Save