From e46a0e54ace9f6ee8a21c9d172ac05ce34988874 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 6 Aug 2016 05:09:35 +0200 Subject: fix bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/cg-base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/cg-base.c b/src/cg-base.c index 5aa9246..d6d2fcb 100644 --- a/src/cg-base.c +++ b/src/cg-base.c @@ -579,8 +579,8 @@ int main(int argc, char* argv[]) char* arg; int at_end; opt[1] = *args++; - arg = args + 1; - if ((at_end = !*args)) + arg = args; + if ((at_end = !*arg)) arg = argv[1]; if (!strcmp(opt, "-M")) { -- cgit v1.2.3-70-g09d2