diff options
Diffstat (limited to 'gdb/guile/scm-symtab.c')
-rw-r--r-- | gdb/guile/scm-symtab.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/guile/scm-symtab.c b/gdb/guile/scm-symtab.c index 925ab39..755ea67 100644 --- a/gdb/guile/scm-symtab.c +++ b/gdb/guile/scm-symtab.c @@ -419,7 +419,7 @@ stscm_make_sal_smob (void) SCM s_scm; s_smob->symtab_scm = SCM_BOOL_F; - memset (&s_smob->sal, 0, sizeof (s_smob->sal)); + new (&s_smob->sal) symtab_and_line (); s_scm = scm_new_smob (sal_smob_tag, (scm_t_bits) s_smob); gdbscm_init_gsmob (&s_smob->base); @@ -589,9 +589,7 @@ static SCM gdbscm_find_pc_line (SCM pc_scm) { ULONGEST pc_ull; - struct symtab_and_line sal; - - init_sal (&sal); /* -Wall */ + symtab_and_line sal; gdbscm_parse_function_args (FUNC_NAME, SCM_ARG1, NULL, "U", pc_scm, &pc_ull); |