parser: Don't set more maps when we don't have any
authorDaniel Stone <daniels@collabora.com>
Mon, 26 Jun 2017 15:45:16 +0000 (16:45 +0100)
committerDaniel Stone <daniels@collabora.com>
Fri, 3 Aug 2018 15:13:35 +0000 (16:13 +0100)
commita8ea7a1d3daa7bdcb877615ae0a252c189153bd2
tree116395008e25bc62478406bf90cd645852eab58a
parent87046f56efc89d3b0771df9b4fefcda39ade3dd1
parser: Don't set more maps when we don't have any

If the scanner indicates that we might have something which looks like a
map, but the parser in fact fails to create that map, we will try to
access the map regardless. Stop doing that.

testcase: 'xkb_keymap {' -> '#kb_keymap'

Signed-off-by: Daniel Stone <daniels@collabora.com>
src/xkbcomp/parser.y