elfedit false "may be used uninitialised"
authorAlan Modra <amodra@gmail.com>
Sun, 8 Nov 2020 23:09:53 +0000 (09:39 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 9 Nov 2020 03:50:10 +0000 (14:20 +1030)
commita4e91c46306ed0bd24b45f882af0e28c5c8c3634
tree6de637599f10372db3db6caec0e625de394687c0
parent904790e24f4a332d0eedf302e417d0f16625f12f
elfedit false "may be used uninitialised"

elfedit.c:904:15: error: 'osabi' may be used uninitialised in this function [-Werror=maybe-uninitialized]
  904 |       osabi = concat (osabi, "|", osabis[i].name, NULL);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* elfedit (usage): Avoid false positive "may be used uninitialised".
Don't leak memory.
binutils/ChangeLog
binutils/elfedit.c