Fix an issue caught by the Clang analyzer.