summaryrefslogtreecommitdiff
path: root/censor.c
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2020-12-25 15:54:09 +0100
committerjaseg <git@jaseg.net>2020-12-25 15:54:09 +0100
commit8d54f67f41f93c4cb4ac3e413a431111904e73e3 (patch)
treede9be1084e3aa4565f23fd111841ae545a149275 /censor.c
parentb6480279fb2ca0003f05f9f884f7bbd8a7d3768d (diff)
downloadlolcat-8d54f67f41f93c4cb4ac3e413a431111904e73e3.tar.gz
lolcat-8d54f67f41f93c4cb4ac3e413a431111904e73e3.tar.bz2
lolcat-8d54f67f41f93c4cb4ac3e413a431111904e73e3.zip
Fix variable scoping error
Diffstat (limited to 'censor.c')
-rw-r--r--censor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/censor.c b/censor.c
index 64e936b..39b25a4 100644
--- a/censor.c
+++ b/censor.c
@@ -27,10 +27,10 @@
int main(int argc, char** argv)
{
+ char* foo[] = { "-" };
char** inputs = argv + 1;
char** inputs_end = argv + argc;
if (inputs == inputs_end) {
- char* foo[] = { "-" };
inputs = foo;
inputs_end = inputs + 1;
}