Allocate xkb_component_names on stack
authorRan Benita <ran234@gmail.com>
Tue, 14 Aug 2012 08:49:19 +0000 (11:49 +0300)
committerRan Benita <ran234@gmail.com>
Sat, 1 Sep 2012 07:58:10 +0000 (10:58 +0300)
commit3634b1565e00f72fcbde655363b85f8f060d91b5
treef9c357799e1496bddd777cee803ef6cac20158cb
parente5353528288a85192793fba57e0acc2633dd7f00
Allocate xkb_component_names on stack

Instead of malloc'ing it as well. Also improve the error handling.

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