diff options
| author | J08nY | 2018-03-25 00:55:30 +0100 |
|---|---|---|
| committer | J08nY | 2018-03-25 00:55:30 +0100 |
| commit | 72f2a5d4fb0aaa054fb73e30944c10a41c830727 (patch) | |
| tree | a7176c117139f9e46baac0450db0e34945e61ca0 /src/exhaustive | |
| parent | f7d64a5b2f6a0ec597e0ee0ad2af1b759833d0dd (diff) | |
| download | ecgen-72f2a5d4fb0aaa054fb73e30944c10a41c830727.tar.gz ecgen-72f2a5d4fb0aaa054fb73e30944c10a41c830727.tar.zst ecgen-72f2a5d4fb0aaa054fb73e30944c10a41c830727.zip | |
Diffstat (limited to 'src/exhaustive')
| -rw-r--r-- | src/exhaustive/exhaustive.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/exhaustive/exhaustive.c b/src/exhaustive/exhaustive.c index 27a5141..53273bc 100644 --- a/src/exhaustive/exhaustive.c +++ b/src/exhaustive/exhaustive.c @@ -428,12 +428,14 @@ int exhaustive_do() { exhaustive_init(&setup); output_o_begin(); + int result = EXIT_SUCCESS; for (unsigned long i = 0; i < cfg->count; ++i) { debug_log_start("Generating new curve"); curve_t *curve = curve_new(); if (!exhaustive_gen(curve, &setup, OFFSET_SEED, OFFSET_END)) { curve_free(&curve); - return EXIT_FAILURE; + result = EXIT_FAILURE; + break; } debug_log_end("Generated new curve"); @@ -447,5 +449,5 @@ int exhaustive_do() { exhaustive_quit(&setup); debug_log_end("Finished Exhaustive method"); - return EXIT_SUCCESS; + return result; } |
