diff options
author | David Edelsohn <dje.gcc@gmail.com> | 2017-08-02 12:44:54 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 2017-08-02 08:44:54 -0400 |
commit | 2e6af1b892c8858f92327c9a49bc91e3606006e6 (patch) | |
tree | a4efefb8efed1ebc0037571f0b1aa8bd5f3ef6b3 | |
parent | 72270bb55c1979075460f3797bcafcbf4707edad (diff) | |
download | gcc-2e6af1b892c8858f92327c9a49bc91e3606006e6.zip gcc-2e6af1b892c8858f92327c9a49bc91e3606006e6.tar.gz gcc-2e6af1b892c8858f92327c9a49bc91e3606006e6.tar.bz2 |
* xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
From-SVN: r250824
-rw-r--r-- | libbacktrace/ChangeLog | 4 | ||||
-rw-r--r-- | libbacktrace/xcoff.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index 313a4c6..ce7b350 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,7 @@ +2017-08-02 David Edelsohn <dje.gcc@gmail.com> + + * xcoff.c (xcoff_process_linenos): Initialize incl to NULL. + 2017-07-28 Tony Reix <tony.reix@atos.net> * xcoff.c: Don't leak a file descriptor if an archive is malformed. diff --git a/libbacktrace/xcoff.c b/libbacktrace/xcoff.c index 2faa9fd..b3d7e24 100644 --- a/libbacktrace/xcoff.c +++ b/libbacktrace/xcoff.c @@ -774,7 +774,7 @@ xcoff_process_linenos (struct backtrace_state *state, uintptr_t base_address, const b_xcoff_lineno *lineno; const unsigned char *lineptr; const char *function; - struct xcoff_incl *incl; + struct xcoff_incl *incl = NULL; uintptr_t lnnoptr; uintptr_t pc; uint32_t lnno; |