Welcome to little lamb

Code » anopa » commit 7d330a0

Fix uninitialized variable

author Olivier Brunel
2015-02-23 19:21:53 UTC
committer Olivier Brunel
2015-04-04 12:47:35 UTC
parent cc88e913a06de274a9caaccb3afcbbe4d4da8c28

Fix uninitialized variable

src/libanopa/service.c +1 -1

diff --git a/src/libanopa/service.c b/src/libanopa/service.c
index baece64..76114d7 100644
--- a/src/libanopa/service.c
+++ b/src/libanopa/service.c
@@ -300,7 +300,7 @@ check_afters (int si, int *sli, int *has_longrun)
 int
 aa_prepare_mainlist (aa_prepare_cb prepare_cb, aa_exec_cb exec_cb)
 {
-    int has_longrun;
+    int has_longrun = 0;
     int i;
 
     _exec_cb = exec_cb;