MYST3: Fix pointer to local variable issue.

Fixes coverity issue #1195422.