]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ctf: sentinelize str_appendn()
authorNick Alcock <nick.alcock@oracle.com>
Mon, 25 Mar 2013 16:43:49 +0000 (16:43 +0000)
committerNick Alcock <nick.alcock@oracle.com>
Mon, 29 Jun 2015 21:41:42 +0000 (22:41 +0100)
commita13ada02dc89f7d0751bccaf909fa7d6ddd5860f
tree9e153472bbc3f2d9b195408c6316ce69a54b03a9
parent8189f670a8d1d1aa1e8fafabe3a0fa09cfd5da26
ctf: sentinelize str_appendn()

str_appendn() takes a variable argument list of items to append, terminated by a
NULL.  Every single time I have used it, I have forgotten the NULL.

Add a sentinel attribute to make it harder to forget in future.

Signed-off-by: Nick Alcock <nick.alcock@oracle.com>
scripts/dwarf2ctf/dwarf2ctf.c