Bug 770: Shorten lifetime of session.download_uri
commit075171c2c8cce6fc72863fa8b0d41b7acbf31eba
authorKalle Olavi Niemitalo <kon@iki.fi>
Sun, 19 Jul 2009 00:24:55 +0000 (19 03:24 +0300)
committerKalle Olavi Niemitalo <Kalle@Astalo.kon.iki.fi>
Sun, 19 Jul 2009 01:06:32 +0000 (19 04:06 +0300)
tree2408259c62bbc657ed583c55962291c4d261dd2b
parentb7d03f9b044e69e712b8c66ff9a4974f6ab564a5
Bug 770: Shorten lifetime of session.download_uri

In common_download(), move session.download_uri to the new member
cmdw_hop.download_uri, which common_download_do() then reads.  This
shields the download request against possible session.download_uri
changes made for other downloads.  And transform_codw_to_cmdw() no
longer needs to touch session.download_uri at all, solving a FIXME.
src/session/download.c
src/session/session.h