From: Ian Lance Taylor Date: Thu, 6 Dec 2007 06:03:00 +0000 (+0000) Subject: Initialize variable to avoid warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f2619d6c3b8c13c9511484252a89b2776c081d1e;p=binutils-gdb.git Initialize variable to avoid warning. --- diff --git a/gold/object.cc b/gold/object.cc index ab1323a2725..3bf274adf6b 100644 --- a/gold/object.cc +++ b/gold/object.cc @@ -1026,7 +1026,7 @@ Sized_relobj::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);