compose/parser: fix segfault when including
authorRan Benita <ran234@gmail.com>
Mon, 13 Oct 2014 15:51:12 +0000 (18:51 +0300)
committerRan Benita <ran234@gmail.com>
Mon, 13 Oct 2014 15:54:52 +0000 (18:54 +0300)
commita3116f97d09a6d6b521dbb543f8f20b33032aa68
tree7559424b13bf3324b1a0d65acdf756deb0043f5e
parent65c355aa7aca77178fb9153821cc4d08b78cfa64
compose/parser: fix segfault when including

The keysym cache for the new scanner was not initialized.
To avoid such errors also in the future, require passing the priv
argument in scanner_init(), instead of initializing it separately.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/compose/parser.c
src/scanner-utils.h
src/xkbcomp/rules.c
src/xkbcomp/scanner.c