gpio.c: check fd before attempting to use it
authorJon Trulson <jtrulson@ics.com>
Fri, 20 Feb 2015 13:35:26 +0000 (13:35 +0000)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Fri, 20 Feb 2015 13:35:34 +0000 (13:35 +0000)
commitee05b49ea2e23ebe4e5c0cde96bd5dba6d593570
tree85f6b0c246bbc5ea9eedf1ed45fb2e8f57088e44
parentdd807308ac7a8a87454a4c8cdf9dbe287ce9275b
gpio.c: check fd before attempting to use it

mraa_gpio_wait_interrupt needs to check fd before using it

Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/gpio/gpio.c