ecore-wl2: Check the return value of ecore_main_fd_handler_fd_get
authorChris Michael <cpmichael@osg.samsung.com>
Thu, 30 Jun 2016 15:05:14 +0000 (11:05 -0400)
committerChris Michael <cpmichael@osg.samsung.com>
Thu, 30 Jun 2016 15:05:14 +0000 (11:05 -0400)
commit35f76fe8a8988d3664628cf83f3ea77a7cbb5c76
tree9cad608ba75acbd5bf110a8864fab0ce2d2a155b
parent0da58a8d78f21f37f73929e0cc4877b029057227
ecore-wl2: Check the return value of ecore_main_fd_handler_fd_get

This patch fixes an issue where ecore_main_fd_handler_fd_get could be
returning a negative number and passing that to close() which cannot
accept negative numbers.

Fixes Coverity CID1357152

@fix

Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
src/lib/ecore_wl2/ecore_wl2_dnd.c