summaryrefslogtreecommitdiff
path: root/lto-plugin
diff options
context:
space:
mode:
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>2016-01-15 14:39:11 +0000
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>2016-01-15 14:39:11 +0000
commit607320fcd40aa6783478d8aed97ff891f3313ea0 (patch)
tree6973df0528d849008b4c0575df83d9a87e574fcf /lto-plugin
parent5fe9a8610da5b11080760111c74224c6201378e3 (diff)
Fix usage of an uninitialized variable
* lto-plugin.c (all_symbols_read_handler): Assign default value to a string variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232426 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'lto-plugin')
-rw-r--r--lto-plugin/ChangeLog5
-rw-r--r--lto-plugin/lto-plugin.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/lto-plugin/ChangeLog b/lto-plugin/ChangeLog
index 59f21f52c944..4ebccb71df85 100644
--- a/lto-plugin/ChangeLog
+++ b/lto-plugin/ChangeLog
@@ -1,3 +1,8 @@
+2016-01-15 Martin Liska <mliska@suse.cz>
+
+ * lto-plugin.c (all_symbols_read_handler): Assign default
+ value to a string variable.
+
2015-11-25 Jan Hubicka <jh@suse.cz>
PR lto/67548
diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c
index 0a6a767c08de..1ed0f0863c01 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;