]> git.kaiwu.me - klib.git/commitdiff
fixed a compiler warning
authorHeng Li <lh3@me.com>
Fri, 20 Apr 2018 03:38:02 +0000 (23:38 -0400)
committerHeng Li <lh3@me.com>
Fri, 20 Apr 2018 03:38:02 +0000 (23:38 -0400)
kavl.h

diff --git a/kavl.h b/kavl.h
index 6e9102ccb5baf0e4f5b1d292f27462d8321f2a1f..ee6c10512f53d930817359981ae262340dac3800 100644 (file)
--- a/kavl.h
+++ b/kavl.h
@@ -136,7 +136,7 @@ int main(void) {
                __type *path[KAVL_MAX_DEPTH]; \
                __type *bp, *bq; \
                __type *p, *q, *r = 0; /* _r_ is potentially the new root */ \
-               int i, which, top, b1, path_len; \
+               int i, which = 0, top, b1, path_len; \
                unsigned cnt = 0; \
                bp = *root_, bq = 0; \
                /* find the insertion location */ \