From 306ee610d24a274f7e765898fbd760d274549388 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 1 Dec 2016 14:48:11 +0100 Subject: Fix bugs 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cg-base.c') 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(); } -- cgit v1.2.3-70-g09d2