Fix confusing error logging 43/155843/1
authorAnastasia Lyupa <a.lyupa@samsung.com>
Mon, 16 Oct 2017 09:08:38 +0000 (12:08 +0300)
committerAnastasia Lyupa <a.lyupa@samsung.com>
Mon, 16 Oct 2017 09:19:01 +0000 (12:19 +0300)
commitc100c3af40e858dbd3903c091a090b5d8115db3d
treea56d710eff9ba440309171f66bcf2f2a589921af
parent6eadb68f08895fa2f698c04c3650efde5edce7bb
Fix confusing error logging

Fix _image_util_decode_create_*_handle().
Check image_handle before trying to reallocate it.
Otherwise meaningless error are recorded.

Change-Id: I981176a447099c9ed1f5b8d18c5163a48c561c08
Signed-off-by: Anastasia Lyupa <a.lyupa@samsung.com>
src/image_util_decode.c