From 9f74aa07d4d09ba45cce3fea36e9447a3e96ae8c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 28 May 2019 12:19:23 +0200 Subject: renice: make code more readable for static analyzer [coverity scan] It seems coverity and clag have no clue about relation between argv[] and argc. Let's make code more readable for them... Signed-off-by: Karel Zak --- sys-utils/renice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys-utils/renice.c b/sys-utils/renice.c index 5efecdfd0..fbce39a1f 100644 --- a/sys-utils/renice.c +++ b/sys-utils/renice.c @@ -140,7 +140,7 @@ int main(int argc, char **argv) argv++; } - if (argc < 2) { + if (argc < 2 || !*argv) { warnx(_("not enough arguments")); errtryhelp(EXIT_FAILURE); } -- cgit v1.2.3-55-g7522