From e9ed75ec00a672bd1f2517735e5398bc6a45cfd1 Mon Sep 17 00:00:00 2001 From: MrStonedOne Date: Tue, 19 Dec 2017 19:37:23 -0800 Subject: [PATCH] Actually, I was right, but for the wrong reasons. --- tools/Runtime Condenser/Main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Runtime Condenser/Main.cpp b/tools/Runtime Condenser/Main.cpp index 1fc580dd4d7..d59f3e1e8b6 100644 --- a/tools/Runtime Condenser/Main.cpp +++ b/tools/Runtime Condenser/Main.cpp @@ -378,7 +378,7 @@ int main(int argc, const char * argv[]) { ios_base::sync_with_stdio(false); ios::sync_with_stdio(false); bool usestdio = false; - if (argc && !strcmp(argv[0], "-s")) + if (argc >= 2 && !strcmp(argv[1], "-s")) usestdio = true; char exit; //Used to stop the program from immediately exiting