This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] ldfile.c: Fix an uninitilized variable.


Hi,

Attached is a patch to fix an uninitilized variable.

Committed as obvious.

Kazu Hirata

2009-04-06  Kazu Hirata  <kazu@codesourcery.com>

	* ldfile.c (ldfile_find_command_file): Initialize result.

Index: ld/ldfile.c
===================================================================
RCS file: /cvs/src/src/ld/ldfile.c,v
retrieving revision 1.48
diff -u -d -p -r1.48 ldfile.c
--- ld/ldfile.c	6 Apr 2009 00:47:09 -0000	1.48
+++ ld/ldfile.c	6 Apr 2009 01:18:55 -0000
@@ -552,7 +552,7 @@ ldfile_find_command_file (const char *na
 			  bfd_boolean default_only)
 {
   search_dirs_type *search;
-  FILE *result;
+  FILE *result = NULL;
   char *buffer;
   static search_dirs_type *script_search;
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]