Fix errors pointer by scan-build.