Corrected check to ensure that command line options are indeed passed.
* Currently, no command line options are being passed via u-boot to haiku. However, the comparison doesn't ensure that cmdline is not an empty string - it merely ensures cmdline is not null. Signed-off-by: Ithamar R. Adema <ithamar@upgrade-android.com>
This commit is contained in:
parent
cf0ba4901d
commit
6f742d85f9
@ -137,7 +137,8 @@ start_netbsd(struct board_info *bd, struct image_header *image,
|
||||
{
|
||||
const char *argv[] = { "haiku", cmdline };
|
||||
int argc = 1;
|
||||
if (cmdline)
|
||||
// TODO: Ensure cmdline is mapped into memory by MMU before usage.
|
||||
if (cmdline && *cmdline)
|
||||
argc++;
|
||||
gUImage = image;
|
||||
return start_raw(argc, argv);
|
||||
|
Loading…
Reference in New Issue
Block a user