I don't see how this can be done, as these variables are used further down in the code outside of the scopes where they are non-NULL initialized.