Fix wrong check of empty queue 32/190632/2
authorDongwoo <dwoo08.lee@samsung.com>
Thu, 4 Oct 2018 08:40:07 +0000 (17:40 +0900)
committerDongwoo <dwoo08.lee@samsung.com>
Thu, 4 Oct 2018 08:50:16 +0000 (17:50 +0900)
commit1b8fc257186ccecf88b0969110dca69ad75872cf
tree9088926a62e1142582082620c853b10cea97bbf4
parentefb1c1c3fe4348a4acfd6f568f9c49668950f143
Fix wrong check of empty queue

This patch resolves svace warnings "DEREF_OF_NULL", which means that can
have only NULL value. Even it is false positive, the condition is also
wrong because it should continue iteration if queue is not empty.

Change-Id: I445463c9ef4522e3e58923fbcbda01d0ce606dcc
Signed-off-by: Dongwoo <dwoo08.lee@samsung.com>
src/dfu.c