pidof: fix typo, argv[0] -> argv[i]
This commit is contained in:
parent
2557104494
commit
d9aaa0f501
2
pidof.c
2
pidof.c
@ -95,7 +95,7 @@ main(int argc, char *argv[])
|
|||||||
cmd++;
|
cmd++;
|
||||||
for (i = 0; i < argc; i++) {
|
for (i = 0; i < argc; i++) {
|
||||||
if (strcmp(cmd, argv[i]) == 0 ||
|
if (strcmp(cmd, argv[i]) == 0 ||
|
||||||
strcmp(cmdbase, argv[0]) == 0) {
|
strcmp(cmdbase, argv[i]) == 0) {
|
||||||
putword(entry->d_name);
|
putword(entry->d_name);
|
||||||
found++;
|
found++;
|
||||||
if (sflag)
|
if (sflag)
|
||||||
|
Loading…
Reference in New Issue
Block a user