Avoid a compiler static analysis warning.

Move a variable declaration/initialization into the only scope where
it is actually used.

Signed-off-by: Jim Stichnoth <jstichnoth@mythtv.org>