[Download] Fixed download initialization 93/281393/1 tizen_4.0
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 09:00:02 +0000 (09:00 +0000)
commit24c2a27ce15346df50e892b746ceb10485a454f4
treeea19f86ce79ffe2a25ea3268e3110d8c00394675
parentde9d976f937ad08e83b7b2ae6d0b3a13b95239ed
[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