fix "Program returns random data in a function" GCC warning
fix "Program is using uninitialized variables." GCC warning