[Download] Fixed download initialization 90/281390/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:29 +0000 (08:59 +0000)
commitf9b5af080e38e5ecd23693ecb5a2155fadcd4706
tree9f11767abc68281a29d4cad20267d67487832e4b
parentb952458182dc8700b56d3fbb2ad4f42c06ae563a
[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