Fix typo in kill(1)
buf is just a local buffer, sig is ultimately pointing to the signal string. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
59ab07f170
commit
9b01c29c04
|
@ -90,7 +90,7 @@ getsig (const char *in_sig)
|
||||||
}
|
}
|
||||||
intsig = strtosigno (sig) ?: atoi (in_sig);
|
intsig = strtosigno (sig) ?: atoi (in_sig);
|
||||||
char *p;
|
char *p;
|
||||||
if (!intsig && (strcmp (buf, "SIG0") != 0 && (strtol (in_sig, &p, 10) != 0 || *p)))
|
if (!intsig && (strcmp (sig, "SIG0") != 0 && (strtol (in_sig, &p, 10) != 0 || *p)))
|
||||||
intsig = -1;
|
intsig = -1;
|
||||||
return intsig;
|
return intsig;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue