aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/kernel.c
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@citrix.com>2012-03-23 13:45:28 +0000
committerDavid Vrabel <david.vrabel@citrix.com>2012-03-23 13:45:28 +0000
commit2579d22937ec662a78597f56af5f4886826a475b (patch)
treedd2f0924d98c696fca37bf2afa9f5a0d073a2361 /xen/common/kernel.c
parent8c3e852fe4bf40d390d9c1fb59e2e1cc7663e713 (diff)
downloadxen-2579d22937ec662a78597f56af5f4886826a475b.tar.gz
xen-2579d22937ec662a78597f56af5f4886826a475b.tar.bz2
xen-2579d22937ec662a78597f56af5f4886826a475b.zip
Fix test for NULL command line in cmdline_parse()
Signed-off-by: David Vrabel <david.vrabel@citrix.com> Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/kernel.c')
-rw-r--r--xen/common/kernel.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xen/common/kernel.c b/xen/common/kernel.c
index 7141790a3e..91dc32eedf 100644
--- a/xen/common/kernel.c
+++ b/xen/common/kernel.c
@@ -55,11 +55,11 @@ void __init cmdline_parse(const char *cmdline)
struct kernel_param *param;
int bool_assert;
- safe_strcpy(saved_cmdline, cmdline);
-
- if ( p == NULL )
+ if ( cmdline == NULL )
return;
+ safe_strcpy(saved_cmdline, cmdline);
+
for ( ; ; )
{
/* Skip whitespace. */