]> granicus.if.org Git - strace/commit
signal: return NULL if signal number has no string representation
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 7 Oct 2018 03:25:33 +0000 (05:25 +0200)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 17 Dec 2018 19:19:23 +0000 (19:19 +0000)
commit2b84c24551d89df173e32dd517c2716cfcf9b5a0
treed17494123472bfccbee1573af88b5489bd0a0fda
parent4964cf376577027f1e35568eb6490cd2d070d1c2
signal: return NULL if signal number has no string representation

Also return NULL if signal number is 0.

* signal.c (signame): Return NULL if signal name has not been found.

Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
signal.c