diff options
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/main.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/core/main.c b/src/core/main.c index 35f31c2c1..7d411d6a5 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -88,11 +88,8 @@ __asmcall int main ( void ) { * booting fails for any reason, offer a second chance * to enter the shell for diagnostics. */ - if ( have_images() ) { - for_each_image ( image ) { - image_exec ( image ); - break; - } + if ( ( image = first_image() ) != NULL ) { + image_exec ( image ); } else { autoboot(); } |
