Skip to content

Commit

Permalink
test: fix cppcheck warnings (#1040)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh authored Jan 4, 2024
1 parent e9bca3f commit a3991df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions test/aulength.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion test/httpauth.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a3991df

Please sign in to comment.