fix up warning from scan-build