Skip to content

Commit

Permalink
filter_qualify: prepare for the change of signame semantics
Browse files Browse the repository at this point in the history
* filter_qualify.c (sigstr_to_uint): Check signame return value.
  • Loading branch information
ldv-alt committed Dec 17, 2018
1 parent 63144af commit 4964cf3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions filter_qualify.c
Expand Up @@ -40,6 +40,9 @@ sigstr_to_uint(const char *s)
for (int i = 1; i <= 255; ++i) {
const char *name = signame(i);

if (!name)
continue;

if (strncasecmp(name, "SIG", 3) != 0)
continue;

Expand Down

0 comments on commit 4964cf3

Please sign in to comment.