diff options
author | Matthew Green <mrg@NetBSD.org> | 2015-07-28 17:53:48 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2015-07-29 16:12:25 +1000 |
commit | 511adde23a0518db0379b444580b63edcb9138a8 (patch) | |
tree | bf8557384a6c8705b80e9a7f35f5ff4e8ad4b53e /expr.c | |
parent | 1ae525b3d236b59e6437b2b5433d460e18370973 (diff) |
Adjust a NUL-string assignment to avoid const issues.
Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'expr.c')
-rw-r--r-- | expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -729,8 +729,8 @@ ExprResolveString(ExprDef * expr, val_rtrn->str = XkbAtomGetString(NULL, expr->value.str); if (val_rtrn->str == NULL) { - static const char *empty = ""; - val_rtrn->str = empty; + static char empty_char = '\0'; + val_rtrn->str = &empty_char; } return True; case ExprIdent: |