On the formation of current sheets in the solar corona