This closes bug #507
authorlmunch <lmunch@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 29 Jan 2010 11:42:26 +0000 (11:42 +0000)
committerlmunch <lmunch@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 29 Jan 2010 11:42:26 +0000 (11:42 +0000)
commit3a53a3dafc13aca246e4cd3422c2b9d18ad4e43e
tree359a979a01e7584709badc6ed36392d923c884dd
parent698d0839e20456daf783e7d6f06e1747d243945b
This closes bug #507

If e17 is compiled with tslib but during runtime the environment variable
TSLIB_TSDEVICE is not set, ecore will accidentally use the file descriptor 0
(probably stdin) for tslib.

The problem is that _ecore_fb_ts_fd is initialized to 0, which is BAD BAD BAD
for file descriptors. It should be initialized to -1. The attached patch fixes
this.

Thanks to John Ogness <john.ogness@linutronix.de> for bug report and fix

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@45703 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/lib/ecore_fb/ecore_fb_ts.c