* ecore: fix ecore_fb build.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 12 Oct 2010 11:49:18 +0000 (11:49 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 12 Oct 2010 11:49:18 +0000 (11:49 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@53303 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_fb/ecore_fb_li.c

index a92da99..b25c28e 100644 (file)
@@ -492,7 +492,7 @@ error_open:
 EAPI void
 ecore_fb_input_device_close(Ecore_Fb_Input_Device *dev)
 {
-   if (!fd) return;
+   if (!dev || dev->fd < 0) return;
    /* close the fd */
    close(dev->fd);
    /* remove the element from the list */