From aea40b08771af69bb9b5e582e6147c3154e56abe Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Fri, 15 Jan 2016 15:39:11 +0100 Subject: [PATCH] Fix usage of an uninitialized variable * lto-plugin.c (all_symbols_read_handler): Assign default value to a string variable. From-SVN: r232426 --- lto-plugin/ChangeLog | 5 +++++ lto-plugin/lto-plugin.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lto-plugin/ChangeLog b/lto-plugin/ChangeLog index 59f21f52c94..4ebccb71df8 100644 --- a/lto-plugin/ChangeLog +++ b/lto-plugin/ChangeLog @@ -1,3 +1,8 @@ +2016-01-15 Martin Liska + + * lto-plugin.c (all_symbols_read_handler): Assign default + value to a string variable. + 2015-11-25 Jan Hubicka PR lto/67548 diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c index 0a6a767c08d..1ed0f0863c0 100644 --- a/lto-plugin/lto-plugin.c +++ b/lto-plugin/lto-plugin.c @@ -628,7 +628,7 @@ all_symbols_read_handler (void) unsigned num_lto_args = num_claimed_files + num_offload_files + lto_wrapper_num_args + 2; char **lto_argv; - const char *linker_output_str; + const char *linker_output_str = NULL; const char **lto_arg_ptr; if (num_claimed_files + num_offload_files == 0) return LDPS_OK;