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:
Arvind S Raj 2014-06-27 18:07:40 +05:30 committed by Ithamar R. Adema
parent cf0ba4901d
commit 6f742d85f9

View File

@ -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);