summaryrefslogtreecommitdiff
path: root/lib_arm/armlinux.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib_arm/armlinux.c')
-rw-r--r--lib_arm/armlinux.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib_arm/armlinux.c b/lib_arm/armlinux.c
index 8ace062..eca9a05 100644
--- a/lib_arm/armlinux.c
+++ b/lib_arm/armlinux.c
@@ -312,6 +312,9 @@ static void setup_commandline_tag (bd_t *bd, char *commandline)
{
char *p;
+ if (!commandline)
+ return;
+
/* eat leading white space */
for (p = commandline; *p == ' '; p++);