-Fix: return 0 from not reached part of function to silence some compilers
-Fix: missing initialization of variable.