COverity fix; unused variable