diff options
Diffstat (limited to 'lolcat.c')
-rw-r--r-- | lolcat.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -74,6 +74,7 @@ void version(){ } int main(int argc, char **argv){ + char *default_argv[] = {"-"}; int cc=-1, i, l=0; wint_t c; int colors=1; @@ -115,8 +116,7 @@ int main(int argc, char **argv){ char **inputs = argv+i; char **inputs_end = argv+argc; if(inputs == inputs_end){ - char *foo[] = {"-"}; - inputs = foo; + inputs = default_argv; inputs_end = inputs+1; } |