aboutsummaryrefslogtreecommitdiffstats
path: root/src/cg-base.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-12-01 14:48:11 +0100
committerMattias Andrée <maandree@kth.se>2016-12-01 14:48:11 +0100
commit306ee610d24a274f7e765898fbd760d274549388 (patch)
tree13ba58600e51a8464ba5748963e892a3a265c13d /src/cg-base.c
parentCheck that the value of -p is proper (diff)
downloadcg-tools-306ee610d24a274f7e765898fbd760d274549388.tar.gz
cg-tools-306ee610d24a274f7e765898fbd760d274549388.tar.bz2
cg-tools-306ee610d24a274f7e765898fbd760d274549388.tar.xz
Fix bugs
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/cg-base.c')
-rw-r--r--src/cg-base.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cg-base.c b/src/cg-base.c
index d9da32a..1309ded 100644
--- a/src/cg-base.c
+++ b/src/cg-base.c
@@ -657,7 +657,7 @@ int main(int argc, char* argv[])
char *end;
errno = 0;
priority = (int64_t)strtoll(prio, &end, 10);
- if (errno || *end)
+ if (errno || *end || !*prio)
usage();
}