Fix unused variable found by static analysis.