fixed bug as ttyname can return NULL
Merge branch 'dbus' into devel
Merge branch 'devel' of github.com:01org/tlm into devel