diff options
author | Martin Liska <mliska@suse.cz> | 2016-01-15 15:39:11 +0100 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2016-01-15 14:39:11 +0000 |
commit | aea40b08771af69bb9b5e582e6147c3154e56abe (patch) | |
tree | 6973df0528d849008b4c0575df83d9a87e574fcf /lto-plugin/lto-plugin.c | |
parent | cbb0e83b5a6357d434844d09302970d39e97310d (diff) | |
download | gcc-aea40b08771af69bb9b5e582e6147c3154e56abe.tar.gz |
Fix usage of an uninitialized variable
* lto-plugin.c (all_symbols_read_handler): Assign default
value to a string variable.
From-SVN: r232426
Diffstat (limited to 'lto-plugin/lto-plugin.c')
-rw-r--r-- | lto-plugin/lto-plugin.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |