summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-07-14 22:26:19 +0200
committerLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-07-14 22:26:19 +0200
commit63d8884f8b748457c43af383f8be09ada3063565 (patch)
tree95cc5cc8b2b45272c42107144e165db95e36da52 /src
parent293c3e4e41cf9db879cfcab789a5a5accd6ba970 (diff)
aardig: errno is niet zo aardig
Diffstat (limited to 'src')
-rw-r--r--src/aardig.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/aardig.c b/src/aardig.c
index 7cd89ab..59caec6 100644
--- a/src/aardig.c
+++ b/src/aardig.c
@@ -58,6 +58,7 @@ int entry_aardig(int argc, char **argv) {
return 1;
}
+ errno = 0;
if (nice(niceness) == -1 && errno) {
fprintf(stderr, "aardig: kon niet aardig worden.\n");
return 1;