Tiny bugfix to termkey.c's initialiser; actually handle multiple driver search properly

This commit is contained in:
Paul LeoNerd Evans 2008-10-08 00:53:59 +01:00
parent 10d3024a6a
commit a80c10e90f

View File

@ -91,6 +91,7 @@ termkey_t *termkey_new_full(int fd, int flags, size_t buffsize, int waittime)
tk->driver = *(drivers[i]); tk->driver = *(drivers[i]);
tk->driver_info = driver_info; tk->driver_info = driver_info;
break;
} }
if(!tk->driver_info) { if(!tk->driver_info) {