rules: allow wildcard match against "" layout/varaint
authorRan Benita <ran234@gmail.com>
Sat, 19 May 2012 09:50:47 +0000 (12:50 +0300)
committerRan Benita <ran234@gmail.com>
Sun, 20 May 2012 17:31:49 +0000 (20:31 +0300)
commit68edd5f0df85c0bce5368c9c7aa52be219e50011
treedb7f2923d0832605af0017fe4f1ff4c03033eaad
parentc900c41760c61438b7f0f64399fc198f4aef88d9
rules: allow wildcard match against "" layout/varaint

Currently, if you pass in an rmlvo with an empty string for layout or
variant, it would not match layout and variant rules even with
wildcards. But if the rules file had set an appropriate default, and someone
passes in the empty string, than he should get the default.

NULL in this case signifies not wanting to match against the layout or
variant at all, and so the rule should still fail to match NULLs.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/rules.c