summaryrefslogtreecommitdiff
path: root/lib_arm
diff options
context:
space:
mode:
Diffstat (limited to 'lib_arm')
-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 8ace062750e..eca9a052c4e 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++);