aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2006-05-15 15:50:14 +0000
committerDaniel Jacobowitz <drow@false.org>2006-05-15 15:50:14 +0000
commit245c7f487f624e96be56ead109684a7684160eca (patch)
tree27572762d4f9ae53c70781cd776837321ac6b4db /gdb/source.c
parentb758e50f4c55af4db5d2ed792f388ed6e56f66dc (diff)
downloadgdb-245c7f487f624e96be56ead109684a7684160eca.zip
gdb-245c7f487f624e96be56ead109684a7684160eca.tar.gz
gdb-245c7f487f624e96be56ead109684a7684160eca.tar.bz2
2006-05-15 Peter O'Gorman <gdb-patches@mlists.thewrittenword.com>
* source.c (get_current_source_symtab_and_line) (set_current_source_symtab_and_line): Use { 0 }. * cli/cli-cmds.c (list_command): Likewise.
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/source.c b/gdb/source.c
index 927601d..8004919 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -139,7 +139,7 @@ get_lines_to_list (void)
struct symtab_and_line
get_current_source_symtab_and_line (void)
{
- struct symtab_and_line cursal = { };
+ struct symtab_and_line cursal = { 0 };
cursal.symtab = current_source_symtab;
cursal.line = current_source_line;
@@ -178,7 +178,7 @@ set_default_source_symtab_and_line (void)
struct symtab_and_line
set_current_source_symtab_and_line (const struct symtab_and_line *sal)
{
- struct symtab_and_line cursal = { };
+ struct symtab_and_line cursal = { 0 };
cursal.symtab = current_source_symtab;
cursal.line = current_source_line;