Commit ee6dcf12 by bartekplus Committed by Stéphane Graber

Fix incorrect value used in comparison

parent dcfd0c99
......@@ -1165,7 +1165,7 @@ static const char *sig_name(int signum) {
int n;
for (n = 0; n < sizeof(signames) / sizeof((signames)[0]); n++) {
if (n == signames[n].num)
if (signum == signames[n].num)
return signames[n].name;
}
return "";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment