[Download] Fixed download initialization 35/281335/1
authorPiotr Kosko/Tizen API (PLT) /SRPOL/Engineer/Samsung Electronics <p.kosko@samsung.com>
Thu, 15 Sep 2022 10:41:42 +0000 (12:41 +0200)
committerPiotr Kosko/Tizen API (PLT) /SRPOL/Engineer/Samsung Electronics <p.kosko@samsung.com>
Thu, 15 Sep 2022 10:41:46 +0000 (12:41 +0200)
commit722a53ccbd76726cb84f65f60c3ba98b0cbb2208
tree387b92abb3bb764f10ce7848f807db38cf2cc584
parent9cdf2f38a5cd97f2ea400d6b390b3fd171d09d24
[Download] Fixed download initialization

When many downloads are taking place one after another it was possible
that uninitialized memory used for state value has a 5,6,7 status, which
caused that web api interpreted it as not valid state change, when the
'DOWNLOADING' state comes. Now this should not occur as the state is
initialized before starting a download.

Change-Id: I8c0ed0d375e512c1dcc17255f2387df70f3ddcb3
src/download/download_instance.cc