aboutsummaryrefslogtreecommitdiff
path: root/gold
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-12-06 06:03:00 +0000
committerIan Lance Taylor <iant@google.com>2007-12-06 06:03:00 +0000
commitf2619d6c3b8c13c9511484252a89b2776c081d1e (patch)
tree71feade05dbfbd31805d73081de2ca1dd75c03b1 /gold
parent7bf1f8020f64a69dc0d93a166c96547655c7eeb2 (diff)
downloadgdb-f2619d6c3b8c13c9511484252a89b2776c081d1e.zip
gdb-f2619d6c3b8c13c9511484252a89b2776c081d1e.tar.gz
gdb-f2619d6c3b8c13c9511484252a89b2776c081d1e.tar.bz2
Initialize variable to avoid warning.
Diffstat (limited to 'gold')
-rw-r--r--gold/object.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/object.cc b/gold/object.cc
index ab1323a..3bf274a 100644
--- a/gold/object.cc
+++ b/gold/object.cc
@@ -1026,7 +1026,7 @@ Sized_relobj<size, big_endian>::write_local_symbols(Output_file* of,
// Get views into the output file for the portions of the symbol table
// and the dynamic symbol table that we will be writing.
off_t output_size = this->output_local_symbol_count_ * sym_size;
- unsigned char* oview;
+ unsigned char* oview = NULL;
if (output_size > 0)
oview = of->get_output_view(this->local_symbol_offset_, output_size);