ecore-input: Check return fo ecore_main_fd_handler_fd_get 56/117656/1
authorChris Michael <cpmichael@osg.samsung.com>
Thu, 30 Jun 2016 14:47:56 +0000 (10:47 -0400)
committerShinwoo Kim <cinoo.kim@samsung.com>
Tue, 7 Mar 2017 04:55:41 +0000 (13:55 +0900)
commite5c8e944fef1630b8df4ab3803f94fd4b91ba966
tree0f641c4535673d550360b73eef68ae6e830cc3ac
parent2cfa130e6eea9e72e0f1b1f9164a24732b4258d1
ecore-input: Check return fo ecore_main_fd_handler_fd_get

This patch fixes 2 coverity Error handling issues.
ecore_main_fd_handler_fd_get can return a negative fd on error so we
should be checking that return before trying to make use of the fd.

Fixes Coverity CID1356632 and CID1356624

@fix

Change-Id: I2930c305ad6f9a3606807498aff490b218c0efe6
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
src/lib/ecore_input/ecore_input_joystick.c