summaryrefslogtreecommitdiffstats
path: root/source/rofi.c
diff options
context:
space:
mode:
authorDave Davenport <qball@aggervaccae.nl>2016-03-04 00:22:04 +0100
committerDave Davenport <qball@aggervaccae.nl>2016-03-04 00:22:04 +0100
commitfc75a204d575315b4369a4ea57d67049b5496dd9 (patch)
tree24e7669716f587a55e64a367ed56879d81f5721c /source/rofi.c
parentfe8aa55fdcbb95fc72f9798095aee1e3562a6fd1 (diff)
Check table exists.
Diffstat (limited to 'source/rofi.c')
-rw-r--r--source/rofi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/rofi.c b/source/rofi.c
index 97d15702..21723770 100644
--- a/source/rofi.c
+++ b/source/rofi.c
@@ -699,6 +699,10 @@ int main ( int argc, char *argv[] )
xkb.state = xkb_x11_state_new_from_device ( xkb.keymap, xcb->connection, xkb.device_id );
xkb.compose.table = xkb_compose_table_new_from_locale ( xkb.context, setlocale ( LC_CTYPE, NULL ), 0 );
+ if ( xkb.compose.table == NULL ) {
+ fprintf(stderr, "Failed to load compose table.\n");
+ return EXIT_FAILURE;
+ }
xkb.compose.state = xkb_compose_state_new ( xkb.compose.table, 0 );
x11_setup ( &xkb );