mirror of
https://github.com/sheumann/hush.git
synced 2025-01-18 07:31:34 +00:00
Path count was out by one, fixed it
This commit is contained in:
parent
63dde9d4ce
commit
38c8551cf2
@ -28,7 +28,7 @@ extern int which_main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
char *path_list, *path_n;
|
char *path_list, *path_n;
|
||||||
struct stat filestat;
|
struct stat filestat;
|
||||||
int i, count=0;
|
int i, count=1;
|
||||||
|
|
||||||
if (argc <= 1 || **(argv + 1) == '-')
|
if (argc <= 1 || **(argv + 1) == '-')
|
||||||
usage(which_usage);
|
usage(which_usage);
|
||||||
|
2
which.c
2
which.c
@ -28,7 +28,7 @@ extern int which_main(int argc, char **argv)
|
|||||||
{
|
{
|
||||||
char *path_list, *path_n;
|
char *path_list, *path_n;
|
||||||
struct stat filestat;
|
struct stat filestat;
|
||||||
int i, count=0;
|
int i, count=1;
|
||||||
|
|
||||||
if (argc <= 1 || **(argv + 1) == '-')
|
if (argc <= 1 || **(argv + 1) == '-')
|
||||||
usage(which_usage);
|
usage(which_usage);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user