scandir returns -1 on error
authorKeith Packard <keithp@keithp.com>
Mon, 18 May 2009 05:43:34 +0000 (22:43 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 18 May 2009 05:43:34 +0000 (22:43 -0700)
commit33221277690e6ee30387c506c3f2b8237ed48efd
tree461d9c71acc882ebb597c1c51b12e56b54bc9728
parent7cb9fb675f56bf30ab6bf0bcdc5cb679709ffe3e
scandir returns -1 on error

In which case, the namelist is invalid, so don't look at it, and don't free
it.

Signed-off-by: Keith Packard <keithp@keithp.com>
aoview/aoview_dev.c