cmCTestSubmitHandler: avoid double fetching envvars

Technically, they can change between these two calls, so use the
verified pointer to assign to strings. Discovered by `clang-analyzer`.
1 file changed