diff options
author | David Vrabel <david.vrabel@citrix.com> | 2012-03-23 13:45:28 +0000 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2012-03-23 13:45:28 +0000 |
commit | 2579d22937ec662a78597f56af5f4886826a475b (patch) | |
tree | dd2f0924d98c696fca37bf2afa9f5a0d073a2361 /xen/common/kernel.c | |
parent | 8c3e852fe4bf40d390d9c1fb59e2e1cc7663e713 (diff) | |
download | xen-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.c | 6 |
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. */ |