aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-08-06 05:09:35 +0200
committerMattias Andrée <maandree@kth.se>2016-08-06 05:09:35 +0200
commite46a0e54ace9f6ee8a21c9d172ac05ce34988874 (patch)
tree96d07f7e98628172d9e4e3a26c14fa094f2ee605 /src
parentAdd cg-sleepmode (diff)
downloadcg-tools-e46a0e54ace9f6ee8a21c9d172ac05ce34988874.tar.gz
cg-tools-e46a0e54ace9f6ee8a21c9d172ac05ce34988874.tar.bz2
cg-tools-e46a0e54ace9f6ee8a21c9d172ac05ce34988874.tar.xz
fix bug
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/cg-base.c4
1 files changed, 2 insertions, 2 deletions
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"))
{