Initialized variables to avoid warnings.

There were already comprobations to avoid using the variables without
setting them before.