mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-03-24 18:04:00 +00:00
emuWheel: use strdup() instead of xstrdup()
Never passing NULL here, so no need to call xstrdup() / Xstrdup() Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
e361cfad9f
commit
3801a36ec9
@@ -210,9 +210,7 @@ EvdevWheelEmuHandleButtonMap(InputInfoPtr pInfo, WheelAxisPtr pAxis,
|
||||
((up_button > 0) && (up_button <= EVDEV_MAXBUTTONS)) &&
|
||||
((down_button > 0) && (down_button <= EVDEV_MAXBUTTONS))) {
|
||||
|
||||
/* Use xstrdup to allocate a string for us */
|
||||
msg = xstrdup("buttons XX and YY");
|
||||
|
||||
msg = strdup("buttons XX and YY");
|
||||
if (msg)
|
||||
sprintf(msg, "buttons %d and %d", up_button, down_button);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user