diff options
Diffstat (limited to 'expr.c')
-rw-r--r-- | expr.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -157,7 +157,6 @@ Bool SimpleLookup(XPointer priv, Atom elem, Atom field, unsigned type, ExprResult * val_rtrn) { - LookupEntry *entry; char *str; if ((priv == NULL) || @@ -167,7 +166,7 @@ SimpleLookup(XPointer priv, return False; } str = XkbAtomGetString(NULL, field); - for (entry = (LookupEntry *) priv; + for (LookupEntry *entry = (LookupEntry *) priv; (entry != NULL) && (entry->name != NULL); entry++) { if (uStrCaseCmp(str, entry->name) == 0) @@ -1051,11 +1050,12 @@ ExprResolveKeySym(ExprDef * expr, IdentLookupFunc lookup, XPointer lookupPriv) { int ok = 0; - KeySym sym; if (expr->op == ExprIdent) { char *str; + KeySym sym; + str = XkbAtomGetString(NULL, expr->value.str); if ((str != NULL) && ((sym = XStringToKeysym(str)) != NoSymbol)) { |