aboutsummaryrefslogtreecommitdiffstats
path: root/src/cg-base.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-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();
}