diff mbox

Fix PR bootstrap/81638

Message ID CAGWvny=AQ2wXz1FONv9sRmJsuVjMgKH_DkyOLjsTfMdiXuTi3Q@mail.gmail.com
State New
Headers show

Commit Message

David Edelsohn Aug. 2, 2017, 12:43 p.m. UTC
To fix the false-positive uninitialized warning, this patch
initializes the "incl" variable.

* xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
diff mbox

Patch

Index: xcoff.c
===================================================================
--- xcoff.c     (revision 250806)
+++ xcoff.c     (working copy)
@@ -774,7 +774,7 @@  xcoff_process_linenos (struct backtrace_state *sta
   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;