Local var assignment in static function

In reply to dave_59:

Thanks!