diff options
author | Mattias Andrée <maandree@kth.se> | 2016-08-06 05:09:35 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-08-06 05:09:35 +0200 |
commit | e46a0e54ace9f6ee8a21c9d172ac05ce34988874 (patch) | |
tree | 96d07f7e98628172d9e4e3a26c14fa094f2ee605 /src/cg-base.c | |
parent | Add cg-sleepmode (diff) | |
download | cg-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 'src/cg-base.c')
-rw-r--r-- | src/cg-base.c | 4 |
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")) { |