diff --git a/test/aulength.c b/test/aulength.c index 2b4f8f5b2..d61329bb4 100644 --- a/test/aulength.c +++ b/test/aulength.c @@ -23,8 +23,7 @@ int test_aulength(void) re_snprintf(path, sizeof(path), "%s/beep.wav", test_datapath()); int err = aufile_open(&af, &prm, path, AUFILE_READ); - if (err) - TEST_ERR(err); + TEST_ERR(err); size_t length = aufile_get_length(af, &prm); TEST_EQUALS(67, length); diff --git a/test/httpauth.c b/test/httpauth.c index cc0c91ec4..3606ada2f 100644 --- a/test/httpauth.c +++ b/test/httpauth.c @@ -590,7 +590,7 @@ int test_httpauth_digest_response(void) }, }; - int err; + int err = 0; for (size_t i = 0; i < RE_ARRAY_SIZE(testv); i++) { struct httpauth_digest_enc_resp *resp = NULL;