diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2015-03-06 19:23:26 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2015-04-08 11:33:18 +0200 |
commit | 2f84032c28ac414b77a5c1ad470eb69ed6c6a1b4 (patch) | |
tree | 83e498edc47480c1c4841c0fb8f21718ee821605 /src/tests | |
parent | 725bb2a9901c4f673b107ed179f5d68ec443ca63 (diff) | |
download | sssd-2f84032c28ac414b77a5c1ad470eb69ed6c6a1b4.tar.gz sssd-2f84032c28ac414b77a5c1ad470eb69ed6c6a1b4.tar.xz sssd-2f84032c28ac414b77a5c1ad470eb69ed6c6a1b4.zip |
util-tests: Initialize boolean variable to default value
The boolean variable found_nss could be used uninitialized
in test test_known_service if service "nss" would not be found.
We would catch it with valgind.
Reviewed-by: Pavel Reichl <preichl@redhat.com>
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/util-tests.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/util-tests.c b/src/tests/util-tests.c index 1cff0bb67..f9301a523 100644 --- a/src/tests/util-tests.c +++ b/src/tests/util-tests.c @@ -1004,7 +1004,7 @@ END_TEST START_TEST(test_known_service) { const char * const * svcs; - bool found_nss; + bool found_nss = false; int i; /* Just make sure we can't find a bogus service and nss |