ui/common: Only close valid file descriptor
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>
Fri, 18 Dec 2015 02:51:00 +0000 (13:51 +1100)
committerSam Mendoza-Jonas <sam@mendozajonas.com>
Tue, 9 Feb 2016 02:39:34 +0000 (13:39 +1100)
commit90cd56cb816e7045b41542c119f64b9ee349a6bc
tree53e1d851fb78315e54ab3750dcb0c79fd40b7c71
parentd9fc4558e66c32834f2a4fdab31010b40f0a88de
ui/common: Only close valid file descriptor

Fixes Coverity defect #30466

Signed-off-by: Sam Mendoza-Jonas <sam@mendozajonas.com>
ui/common/joystick.c