aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/ldlinux/kernel.c
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-04-02 17:11:57 +0100
committerMatt Fleming <matt.fleming@intel.com>2012-04-17 10:58:34 +0100
commit8d2c8de3a3bcc969e45716649583bf5f62936379 (patch)
tree904d829d8dc6fdef2895229da9bf6f8b1ec89a00 /com32/elflink/ldlinux/kernel.c
parent5dd53846001c7cd483ed32207f53a54977f9a11f (diff)
downloadsyslinux-8d2c8de3a3bcc969e45716649583bf5f62936379.tar.gz
syslinux-8d2c8de3a3bcc969e45716649583bf5f62936379.tar.xz
syslinux-8d2c8de3a3bcc969e45716649583bf5f62936379.zip
ldlinux: Fix uninitialized variable warning
Fix the following warning by initializing 'kernel_name' to NULL, kernel.c:18:14: warning: ‘kernel_name’ may be used uninitialized in this function Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'com32/elflink/ldlinux/kernel.c')
-rw-r--r--com32/elflink/ldlinux/kernel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/elflink/ldlinux/kernel.c b/com32/elflink/ldlinux/kernel.c
index 375dab04..66c4480e 100644
--- a/com32/elflink/ldlinux/kernel.c
+++ b/com32/elflink/ldlinux/kernel.c
@@ -15,7 +15,7 @@ const char *append = NULL;
/* Will be called from readconfig.c */
int new_linux_kernel(char *okernel, char *ocmdline)
{
- const char *kernel_name;
+ const char *kernel_name = NULL;
struct initramfs *initramfs = NULL;
char *temp;
void *kernel_data;