summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/compose/compose.c3
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;
© All Rights Reserved