Corrected an 'dead assignment' issue reported by static analysis.