Commit 511adde2 authored by Matthew Green's avatar Matthew Green Committed by Peter Hutterer
Browse files

Adjust a NUL-string assignment to avoid const issues.



Signed-off-by: Thomas Klausner's avatarThomas Klausner <wiz@NetBSD.org>
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 1ae525b3
...@@ -729,8 +729,8 @@ ExprResolveString(ExprDef * expr, ...@@ -729,8 +729,8 @@ ExprResolveString(ExprDef * expr,
val_rtrn->str = XkbAtomGetString(NULL, expr->value.str); val_rtrn->str = XkbAtomGetString(NULL, expr->value.str);
if (val_rtrn->str == NULL) if (val_rtrn->str == NULL)
{ {
static const char *empty = ""; static char empty_char = '\0';
val_rtrn->str = empty; val_rtrn->str = &empty_char;
} }
return True; return True;
case ExprIdent: case ExprIdent:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment