summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: