2
0
mirror of git://github.com/lxc/lxc synced 2025-08-31 19:12:01 +00:00

Fix incorrect value used in comparison

Signed-off-by: Bartosz Tomczyk <bartekplus@gmail.com>
Acked-by: Dwight Engen <dwight.engen@oracle.com>
This commit is contained in:
bartekplus
2014-05-28 17:52:24 +02:00
committed by Dwight Engen
parent bfd0b144b6
commit c83462d56d

View File

@@ -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 "";