summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2012-09-23 16:48:24 +0200
committerPali Rohár <pali.rohar@gmail.com>2012-09-23 16:48:24 +0200
commite4f7cf7bc5678d3ad26818625fb5b3e49c7af94d (patch)
tree8dfc5fc1551060ca6fe5fc13ed584187fa72c613 /src/main.c
parentcd9b51ad80249c65d44598a36c3c0e68e5d8556e (diff)
download0xFFFF-e4f7cf7bc5678d3ad26818625fb5b3e49c7af94d.tar.bz2
main: Fix loading images
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 6c279b1..3e75bf9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;
}