declare this where you use it to limit scope. or initialize it to NULL.