aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2012-04-02 14:12:06 +0100
committerMatt Fleming <matt.fleming@intel.com>2012-04-17 10:58:34 +0100
commit55891f97921b5e949f1bd1f2983cb964b80028c5 (patch)
treec1d426e0d8dc8fd42a56d96e51c3fafe1d26618d
parent7d6eaf26373c5eb38c8057987a504ff902096382 (diff)
downloadsyslinux-55891f97921b5e949f1bd1f2983cb964b80028c5.tar.gz
syslinux-55891f97921b5e949f1bd1f2983cb964b80028c5.tar.xz
syslinux-55891f97921b5e949f1bd1f2983cb964b80028c5.zip
ldlinux: Silence gcc warning about uninitialized variable
Initialize 'comm_counter' so that gcc will no longer complain with the following, cli.c: In function ‘edit_cmdline’: cli.c:142:25: warning: ‘comm_counter’ may be used uninitialized in this function Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r--com32/elflink/ldlinux/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/elflink/ldlinux/cli.c b/com32/elflink/ldlinux/cli.c
index 6d74109c..498644e2 100644
--- a/com32/elflink/ldlinux/cli.c
+++ b/com32/elflink/ldlinux/cli.c
@@ -139,7 +139,7 @@ const char *edit_cmdline(const char *input, int top /*, int width */ ,
bool done = false;
const char *ret;
int width = 0;
- struct cli_command *comm_counter;
+ struct cli_command *comm_counter = NULL;
if (!width) {
int height;