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:
Arvind S Raj
2014-06-27 12:20:22 -07:00
committed by Ithamar R. Adema
parent cf0ba4901d
commit 6f742d85f9
+2 -1
View File
@@ -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);