From: dje Date: Wed, 2 Aug 2017 12:44:54 +0000 (+0000) Subject: * xcoff.c (xcoff_process_linenos): Initialize incl to NULL. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=94bade3ff01781ea1a097012b8f26c1320dfbcc2;p=thirdparty%2Fgcc.git * xcoff.c (xcoff_process_linenos): Initialize incl to NULL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@250824 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index 313a4c61855e..ce7b350bffcd 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,7 @@ +2017-08-02 David Edelsohn + + * xcoff.c (xcoff_process_linenos): Initialize incl to NULL. + 2017-07-28 Tony Reix * xcoff.c: Don't leak a file descriptor if an archive is malformed. diff --git a/libbacktrace/xcoff.c b/libbacktrace/xcoff.c index 2faa9fdfa05b..b3d7e24256b5 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;