kdrive: Fix segfault in tslib support
This commit is contained in:
parent
843166b033
commit
5f769b7344
|
@ -114,7 +114,7 @@ TslibEnable (KdPointerInfo *pi)
|
|||
private->raw_event_hook = NULL;
|
||||
private->raw_event_closure = NULL;
|
||||
if (!pi->path) {
|
||||
pi->path = "/dev/input/touchscreen0";
|
||||
pi->path = strdup("/dev/input/touchscreen0");
|
||||
ErrorF("[tslib/TslibEnable] no device path given, trying %s\n", pi->path);
|
||||
}
|
||||
private->tsDev = ts_open(pi->path, 0);
|
||||
|
|
Loading…
Reference in New Issue
Block a user