[Download] Fixed download initialization 92/281392/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:51 +0000 (08:59 +0000)
commit3dcc3dbd1623003f7f16c33c300d275c47905217
tree8a95bb84c17244b6c6b8a702f9faf8eb4d42d979
parent36acccbfdd55cce25b347afe63c98505a021fbc9
[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