Fix wrong close for negative file descriptor 97/178297/3
authorDongwoo Lee <dwoo08.lee@samsung.com>
Wed, 9 May 2018 06:21:34 +0000 (15:21 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 18 May 2018 03:30:28 +0000 (12:30 +0900)
commit1ec0490922ecb0a824a8c705f7f0091f7eefb46d
tree4d26fc9988dfbcf16de0cb04a922d7aaae4080bb
parentaac8a6fee15d059345666d4c1f2f02188632cab6
Fix wrong close for negative file descriptor

There is an issue which negative file descriptor can be attempt to
close in static analysis tool result. This patch fixes to skip close
on that case.

Change-Id: Ic68803bc96ab6e3737d1bcc4779b8e3c58c7ef71
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Dongwoo Lee <dwoo08.lee@samsung.com>
libthor/thor_raw_file.c