aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2009-02-23 03:07:14 +0000
committerJoel Brobecker <brobecker@gnat.com>2009-02-23 03:07:14 +0000
commit6f43c46f4b7ae3ae4506773de7d41c61bd2be4fe (patch)
treee1f38bae053b813f553561203311341ac661b922 /gdb/symtab.c
parent84e473c82efff461505b4ec749349e65b5f4e781 (diff)
downloadgdb-6f43c46f4b7ae3ae4506773de7d41c61bd2be4fe.zip
gdb-6f43c46f4b7ae3ae4506773de7d41c61bd2be4fe.tar.gz
gdb-6f43c46f4b7ae3ae4506773de7d41c61bd2be4fe.tar.bz2
(tiny change)
* symtab.c (find_line_symtab): Initialize exact to avoid a compiler warning.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 1ef92a8..d51c7aa 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -2361,7 +2361,7 @@ find_pc_line (CORE_ADDR pc, int notcurrent)
struct symtab *
find_line_symtab (struct symtab *symtab, int line, int *index, int *exact_match)
{
- int exact;
+ int exact = 0; /* Initialized here to avoid a compiler warning. */
/* BEST_INDEX and BEST_LINETABLE identify the smallest linenumber > LINE
so far seen. */