Skip to content

Commit

Permalink
Fix strict warnings [full tests]
Browse files Browse the repository at this point in the history
Signed-off-by: Basil Hess <[email protected]>
  • Loading branch information
bhess committed Nov 18, 2024
1 parent ed194b7 commit fe28f6b
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions tests/vectors_sig.c
Original file line number Diff line number Diff line change
Expand Up @@ -370,15 +370,8 @@ int main(int argc, char **argv) {

OQS_init();

if (argc < 3) {
valid_args = false;
goto err;
}

size_t msgLen;

char *alg_name = argv[1];
char *test_name = argv[2];
char *prng_output_stream = NULL;
char *kg_pk;
char *kg_sk;
Expand All @@ -404,7 +397,18 @@ int main(int argc, char **argv) {
uint8_t *sigVer_msg_bytes = NULL;
uint8_t *sigVer_sig_bytes = NULL;

OQS_SIG *sig = OQS_SIG_new(alg_name);
OQS_SIG *sig = NULL;

if (argc < 3) {
valid_args = false;
goto err;
}

char *alg_name = argv[1];
char *test_name = argv[2];

sig = OQS_SIG_new(alg_name);

if (sig == NULL) {
printf("[vectors_sig] %s was not enabled at compile-time.\n", alg_name);
goto err;
Expand Down

0 comments on commit fe28f6b

Please sign in to comment.