diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-02-10 14:24:19 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-02-11 09:17:55 -0500 |
commit | 01bc248f42f1a056091aa3dd99ba9615ba61df6f (patch) | |
tree | 8728765b91b656f5152ba39a596d92788dcdf204 /src/tests/stress-tests.c | |
parent | 79a04cb672dd9c37f7d6d4370abea8aac52abf89 (diff) | |
download | sssd-01bc248f42f1a056091aa3dd99ba9615ba61df6f.tar.gz sssd-01bc248f42f1a056091aa3dd99ba9615ba61df6f.tar.xz sssd-01bc248f42f1a056091aa3dd99ba9615ba61df6f.zip |
Clear up -Wunused-but-set-variable warnings
Diffstat (limited to 'src/tests/stress-tests.c')
-rw-r--r-- | src/tests/stress-tests.c | 2 |
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; } } |