diff options
Diffstat (limited to 'src/modules/compose/compose.c')
-rw-r--r-- | src/modules/compose/compose.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/compose/compose.c b/src/modules/compose/compose.c index 0f6b8fc..9be4c0c 100644 --- a/src/modules/compose/compose.c +++ b/src/modules/compose/compose.c @@ -141,6 +141,9 @@ static int compose_setup(const til_settings_t *settings, til_setting_t **res_set return -ENOMEM; layer = strtok(toklayers, ":"); + if (!layer) + return -EINVAL; + do { char **new; size_t i; |