Fix scan-build warnings.