]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Fix maybe-uninitialized warning in frame.c
authorTom Tromey <tom@tromey.com>
Fri, 31 Mar 2023 15:17:13 +0000 (09:17 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 31 Mar 2023 15:20:01 +0000 (09:20 -0600)
commit5d49758d2c04dcf0d685f99e85a553e7c3891e34
treed48fda5458e52fbce0d910a86aa9ccabd2c80013
parent103409bb38502b95cb60475939a49c2b059673d5
Fix maybe-uninitialized warning in frame.c

A recent patch caused my system gcc (Fedora 36, so gcc 12.2.1) to warn
about sym_addr being possibly uninitialized in frame.c.  It isn't, but
the compiler can't tell.  So, this patch initializes the variable.  I
also fixed a formatting buglet that I missed in review.
gdb/frame.c