Resolve CID 1222223.

One can argue that it was a false positive on the analyzer part but fixing this code eliminates a repeating action by reusing the temporary variable.