iio.c: Closedir correctly and return error if we fail to read from the device dir
authorBrendan Le Foll <brendan.le.foll@intel.com>
Mon, 21 Dec 2015 15:38:20 +0000 (15:38 +0000)
committerBrendan Le Foll <brendan.le.foll@intel.com>
Mon, 21 Dec 2015 15:38:20 +0000 (15:38 +0000)
commit58cf292dfc90340b15052ac86de641b6516badbe
treeb0ec94845d21f7348c99479d502106cf7505e67b
parent15e400eaf2723058d2d3f53b68ddebdc04de6d66
iio.c: Closedir correctly and return error if we fail to read from the device dir

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
src/iio/iio.c