diff options
-rw-r--r-- | src/pattern_sim.c | 2 | ||||
-rw-r--r-- | src/utils.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/pattern_sim.c b/src/pattern_sim.c index 5e2df13b..84956bc3 100644 --- a/src/pattern_sim.c +++ b/src/pattern_sim.c @@ -201,4 +201,6 @@ int main(int argc, char *argv[]) if ( n_images && (number >= n_images) ) done = 1; } while ( !done ); + + return 0; } diff --git a/src/utils.c b/src/utils.c index 90720510..9aa235a2 100644 --- a/src/utils.c +++ b/src/utils.c @@ -77,7 +77,7 @@ void progress_bar(int val, int total, const char *text) double poisson_noise(double expected) { double L; - int k; + int k = 0; double p = 1.0; L = exp(-expected); |