From 8d54f67f41f93c4cb4ac3e413a431111904e73e3 Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 25 Dec 2020 15:54:09 +0100 Subject: Fix variable scoping error --- censor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'censor.c') 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; } -- cgit