[Download] Fixed download initialization 89/281389/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 <p.kosko@samsung.com>
Fri, 16 Sep 2022 08:59:13 +0000 (08:59 +0000)
commit6389bedc5519eba4d2cc4bb37864a88810d99ad0
tree26070b9f769c3076bedf8ea9566247e9f4ae2513
parentac5d5b2605ac23bdeecf4baa81cf731447828a03
[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
(cherry picked from commit 722a53ccbd76726cb84f65f60c3ba98b0cbb2208)
src/download/download_instance.cc