summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/stress-tests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/stress-tests.c b/src/tests/stress-tests.c
index 5075348e1..e34f910ad 100644
--- a/src/tests/stress-tests.c
+++ b/src/tests/stress-tests.c
@@ -59,7 +59,7 @@ int test_lookup_user(const char *name, int enoent_fail)
pwd = getpwnam(name);
error = errno;
if (pwd == NULL) {
- if (errno == 0 || errno == ENOENT) {
+ if (error == 0 || error == ENOENT) {
ret = (enoent_fail == 1) ? ENOENT : 0;
}
}