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

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,
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:
......
Markdown is supported
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