Fix signed error.
This commit is contained in:
parent
807e5d7250
commit
2ea1df634e
@ -166,7 +166,7 @@ parse_signal(const char *sig)
|
||||
return -1;
|
||||
|
||||
if (sscanf(sig, "%u", &i) == 1) {
|
||||
if (i >= 0 && i < NSIG)
|
||||
if (i < NSIG)
|
||||
return i;
|
||||
eerrorx("%s: `%s' is not a valid signal", applet, sig);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user