mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-09 21:18:18 +02:00
xkb: add missing NULL check for strdup in XkbAddGeomProperty update path
Co-Authored-by: Claude Code <noreply@anthropic.com> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2184>
This commit is contained in:
parent
a29c8a352c
commit
665e8a0c43
1 changed files with 2 additions and 0 deletions
|
|
@ -555,6 +555,8 @@ XkbAddGeomProperty(XkbGeometryPtr geom, char *name, char *value)
|
|||
if ((prop->name) && (strcmp(name, prop->name) == 0)) {
|
||||
free(prop->value);
|
||||
prop->value = strdup(value);
|
||||
if (!prop->value)
|
||||
return NULL;
|
||||
return prop;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue