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:
@@ -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 "";
|
||||
|
Reference in New Issue
Block a user