diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-02-13 21:36:03 -0800 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2017-03-03 21:33:34 +0100 |
commit | bdfb52193b5a2c5e44969b11d997ce19f0310af9 (patch) | |
tree | 7f2b93218eddb984f5ae27e0aa086393e184476c /nx-X11/programs/Xserver/xkb/ddxConfig.c | |
parent | e61e9795c3d19b163ebea9a230c2acc718a70d79 (diff) | |
download | nx-libs-bdfb52193b5a2c5e44969b11d997ce19f0310af9.tar.gz nx-libs-bdfb52193b5a2c5e44969b11d997ce19f0310af9.tar.bz2 nx-libs-bdfb52193b5a2c5e44969b11d997ce19f0310af9.zip |
Replace _XkbDupString with Xstrdup
The two functions have identical semantics, including safely returning
NULL when NULL is passed in (which POSIX strdup does not guarantee).
Some callers could probably be adjusted to call libc strdup directly,
when we know the input is non-NULL.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/programs/Xserver/xkb/ddxConfig.c')
-rw-r--r-- | nx-X11/programs/Xserver/xkb/ddxConfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/xkb/ddxConfig.c b/nx-X11/programs/Xserver/xkb/ddxConfig.c index 2fd5e7610..0046b853e 100644 --- a/nx-X11/programs/Xserver/xkb/ddxConfig.c +++ b/nx-X11/programs/Xserver/xkb/ddxConfig.c @@ -187,7 +187,7 @@ XkbConfigRtrnPtr rtrn; } if (rtrn->symbols!=NULL) { if (rtrn->phys_symbols==NULL) - rtrn->phys_symbols= _XkbDupString(names->symbols); + rtrn->phys_symbols= Xstrdup(names->symbols); if (names->symbols) _XkbFree(names->symbols); names->symbols= rtrn->symbols; rtrn->symbols= NULL; |