[syslinux:elflink] ldlinux: Initialise 'p' before using it.

syslinux-bot for Matt Fleming matt.fleming at intel.com
Mon Mar 26 15:36:02 PDT 2012


Commit-ID:  c8224383b59b1887c020182684d23a134470802a
Gitweb:     http://www.syslinux.org/commit/c8224383b59b1887c020182684d23a134470802a
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Thu, 15 Dec 2011 20:47:00 +0000
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Tue, 7 Feb 2012 15:31:28 +0000

ldlinux: Initialise 'p' before using it.

Signed-off-by: Matt Fleming <matt.fleming at intel.com>

---
 com32/elflink/ldlinux/ldlinux.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/com32/elflink/ldlinux/ldlinux.c b/com32/elflink/ldlinux/ldlinux.c
index 84cb41f..5360417 100644
--- a/com32/elflink/ldlinux/ldlinux.c
+++ b/com32/elflink/ldlinux/ldlinux.c
@@ -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++;


More information about the Syslinux-commits mailing list