Temperature gradients in the inner corona