Fixed compiler warning about uninitialized variable upper_layer_memlen