ldlinux: Initialise 'p' before using it.
authorMatt Fleming <matt.fleming@intel.com>
Thu, 15 Dec 2011 20:47:00 +0000 (20:47 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 7 Feb 2012 15:31:28 +0000 (15:31 +0000)
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/elflink/ldlinux/ldlinux.c

index 84cb41f..5360417 100644 (file)
@@ -42,6 +42,7 @@ static void load_kernel(const char *kernel)
        if (!allowimplicit)
                goto bad_implicit;
 
+       p = kernel;
        /* Find the end of the command */
        while (*p && !my_isspace(*p))
                p++;