Commit c83462d5 by bartekplus Committed by Dwight Engen

Fix incorrect value used in comparison

parent bfd0b144
......@@ -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