diff options
Diffstat (limited to 'src/XKBfileInt.h')
-rw-r--r-- | src/XKBfileInt.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/XKBfileInt.h b/src/XKBfileInt.h index 5573638..a99b7c8 100644 --- a/src/XKBfileInt.h +++ b/src/XKBfileInt.h @@ -65,6 +65,12 @@ _XFUNCPROTOBEGIN +static inline +char *_XkbDupString(const char *s) +{ + return s ? strdup(s) : NULL; +} + #define _XkbStrCaseEqual(s1,s2) (_XkbStrCaseCmp(s1,s2)==0) #ifdef NEED_STRCASECMP |