Fix uninitialized value
Add a cppcheck script