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 <[email protected]>
This commit is contained in:
committed by
Ithamar R. Adema
parent
cf0ba4901d
commit
6f742d85f9
@@ -137,7 +137,8 @@ start_netbsd(struct board_info *bd, struct image_header *image,
|
|||||||
{
|
{
|
||||||
const char *argv[] = { "haiku", cmdline };
|
const char *argv[] = { "haiku", cmdline };
|
||||||
int argc = 1;
|
int argc = 1;
|
||||||
if (cmdline)
|
// TODO: Ensure cmdline is mapped into memory by MMU before usage.
|
||||||
|
if (cmdline && *cmdline)
|
||||||
argc++;
|
argc++;
|
||||||
gUImage = image;
|
gUImage = image;
|
||||||
return start_raw(argc, argv);
|
return start_raw(argc, argv);
|
||||||
|
|||||||
Reference in New Issue
Block a user