Fixed two reports of scan-build