logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git
commit: a1fe3661c4ad2c0bd416c3ef9197bec5f68c45de
parent 54754836c804c7aa56159ca20546337ae4e19747
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat, 28 Sep 2024 13:01:44 +0200

cmd/nice: return 0 when no command is passed

Diffstat:

Mcmd/nice.c3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cmd/nice.c b/cmd/nice.c @@ -63,7 +63,8 @@ main(int argc, char *argv[]) argc -= optind; argv += optind; - (void)argc; + + if(argc == 0) return 0; errno = 0;