summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Green <mrg@NetBSD.org>2015-07-28 17:53:48 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2015-07-29 16:12:25 +1000
commit511adde23a0518db0379b444580b63edcb9138a8 (patch)
treebf8557384a6c8705b80e9a7f35f5ff4e8ad4b53e
parent1ae525b3d236b59e6437b2b5433d460e18370973 (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>
-rw-r--r--expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/expr.c b/expr.c
index e0f957c..841ab07 100644
--- a/expr.c
+++ b/expr.c
@@ -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: