libctf, create: member names of "" and NULL should be the same
authorNick Alcock <nick.alcock@oracle.com>
Tue, 2 Jun 2020 19:28:16 +0000 (20:28 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 22 Jul 2020 16:57:27 +0000 (17:57 +0100)
commitab769488e75272c3cbea4626a346fd0c336b2de6
treef8df0e4cc998210af7387454f4e72bdd2c55979c
parent2484ca436ac68716636a7aca3826bca3cda243a4
libctf, create: member names of "" and NULL should be the same

This matters for the case of unnamed bitfields, whose names are the null
string.  These are special in that they are the only members whose
"names" are allowed to be duplicated in a single struct, but we were
only handling this for the case where name == NULL.  Translate "" to
NULL to help callers.

libctf/
* ctf-create.c (ctf_add_member_offset): Support names of ""
as if they were the null pointer.
libctf/ChangeLog
libctf/ctf-create.c