From 18541c1d58612f1535972c54940bbb460c5cab06 Mon Sep 17 00:00:00 2001
From: Ray Strode <rstrode@redhat.com>
Date: Thu, 7 Oct 2010 12:47:47 -0400
Subject: [PATCH] main: NULL initialize "console" variable
check_for_consoles is a really small function, that has historically
been loaded with bugs.
This commit fixes another bug in it, where the consoles variable is
never initialized to NULL.
---
src/main.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/main.c b/src/main.c
index 2787aed..7358c24 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1765,6 +1765,7 @@ check_for_consoles (state_t *state,
remaining_command_line = state->kernel_command_line;
+ console = NULL;
consoles = ply_hashtable_new (ply_hashtable_string_hash,
ply_hashtable_string_compare);
while ((console_string = command_line_get_string_after_prefix (remaining_command_line,
--
1.7.3.1