summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-04-30 09:23:01 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-04-30 09:23:01 +0000
commita041a2ef8165d109bad8e03dc15a97b205f1edf5 (patch)
treec1138de8f08d7a411ddfef90717c7013a6541c9f /tests
parent9cc0ff6d43e8c32ea32f80755221eaf8ae4eb370 (diff)
downloadlasso-a041a2ef8165d109bad8e03dc15a97b205f1edf5.tar.gz
lasso-a041a2ef8165d109bad8e03dc15a97b205f1edf5.tar.xz
lasso-a041a2ef8165d109bad8e03dc15a97b205f1edf5.zip
Initialize all uninitialized rc variables
Diffstat (limited to 'tests')
-rw-r--r--tests/login_tests.c4
-rw-r--r--tests/login_tests_saml2.c4
-rw-r--r--tests/perfs.c2
-rw-r--r--tests/tests.c2
4 files changed, 6 insertions, 6 deletions
diff --git a/tests/login_tests.c b/tests/login_tests.c
index 479b387a..54a2d554 100644
--- a/tests/login_tests.c
+++ b/tests/login_tests.c
@@ -139,7 +139,7 @@ START_TEST(test02_serviceProviderLogin)
LassoServer *spContext, *idpContext;
LassoLogin *spLoginContext, *idpLoginContext;
LassoLibAuthnRequest *request;
- int rc;
+ int rc = 0;
char *relayState;
char *authnRequestUrl, *authnRequestQuery;
char *responseUrl, *responseQuery;
@@ -315,7 +315,7 @@ START_TEST(test03_serviceProviderLogin)
LassoServer *spContext, *idpContext;
LassoLogin *spLoginContext, *idpLoginContext;
LassoLibAuthnRequest *request;
- int rc;
+ int rc = 0;
char *relayState;
char *authnRequestUrl, *authnRequestQuery;
char *responseUrl, *responseQuery;
diff --git a/tests/login_tests_saml2.c b/tests/login_tests_saml2.c
index 2f6d59a2..78913add 100644
--- a/tests/login_tests_saml2.c
+++ b/tests/login_tests_saml2.c
@@ -141,7 +141,7 @@ START_TEST(test02_saml2_serviceProviderLogin)
LassoLogin *spLoginContext = NULL, *idpLoginContext = NULL;
LassoLogout *spLogoutContext = NULL, *idpLogoutContext = NULL;
LassoSamlp2AuthnRequest *request = NULL;
- int rc;
+ int rc = 0;
char *relayState = NULL;
char *authnRequestUrl = NULL, *authnRequestQuery = NULL;
char *logoutRequestUrl = NULL, *logoutRequestQuery = NULL;
@@ -352,7 +352,7 @@ START_TEST(test03_saml2_serviceProviderLogin)
char *spIdentityContextDump = NULL;
char *spSessionDump = NULL;
char *idpLoginDump = NULL;
- int rc;
+ int rc = 0;
serviceProviderContextDump = generateServiceProviderContextDump();
spContext = lasso_server_new_from_dump(serviceProviderContextDump);
diff --git a/tests/perfs.c b/tests/perfs.c
index 79bd580f..6f60275b 100644
--- a/tests/perfs.c
+++ b/tests/perfs.c
@@ -34,7 +34,7 @@ create_authn_response_msg(char *query)
LassoServer *server;
LassoLogin *login;
char *t;
- int rc;
+ int rc = 0;
server = lasso_server_new(
TESTSDATADIR "/idp1-la/metadata.xml",
diff --git a/tests/tests.c b/tests/tests.c
index 5217bbb8..3b0267f1 100644
--- a/tests/tests.c
+++ b/tests/tests.c
@@ -57,7 +57,7 @@ SuiteFunction suites[] = {
int
main(int argc, char *argv[])
{
- int rc;
+ int rc = 0;
SRunner *sr;
int i;
int dont_fork = 0;