diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2012-09-23 16:48:24 +0200 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2012-09-23 16:48:24 +0200 |
commit | e4f7cf7bc5678d3ad26818625fb5b3e49c7af94d (patch) | |
tree | 8dfc5fc1551060ca6fe5fc13ed584187fa72c613 /src | |
parent | cd9b51ad80249c65d44598a36c3c0e68e5d8556e (diff) | |
download | 0xFFFF-e4f7cf7bc5678d3ad26818625fb5b3e49c7af94d.tar.bz2 |
main: Fix loading images
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -980,7 +980,7 @@ int main(int argc, char **argv) { if ( have_kernel == 0 ) { image_kernel = image_ptr->image; have_kernel = 1; - } else if ( have_kernel == 1 ) { + } else if ( have_kernel == 1 && image_kernel != image_ptr->image ) { image_kernel = NULL; have_kernel = 2; } @@ -995,7 +995,7 @@ int main(int argc, char **argv) { if ( have_initfs == 0 ) { image_initfs = image_ptr->image; have_initfs = 1; - } else if ( have_initfs == 1 ) { + } else if ( have_initfs == 1 && image_initfs != image_ptr->image ) { image_initfs = NULL; have_initfs = 2; } |