mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 05:40:04 +01:00
Fix a gcc analyzer complaint
Doesn't trigger here since we never call it with NULL but let's make sure anyway. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
3fb876a49d
commit
2ebb6f629f
1 changed files with 1 additions and 1 deletions
|
|
@ -506,7 +506,7 @@ parse_evdev_abs_prop(const char *prop, struct input_absinfo *abs)
|
|||
|
||||
/* basic sanity check: 5 digits for min/max, 3 for resolution, fuzz,
|
||||
* flat and the colons. That's plenty, anything over is garbage */
|
||||
if (strlen(prop) > 24)
|
||||
if (!prop || strlen(prop) > 24)
|
||||
goto out;
|
||||
|
||||
current = str;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue