summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lolcat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lolcat.c b/lolcat.c
index ad1893b..6e6ffba 100644
--- a/lolcat.c
+++ b/lolcat.c
@@ -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;
}