Commit f046336561e63bb1a6863fc3a751f20c0bac54ac Parent: accf2e5e294ac47b5dfc3fc515fb2d3e25706397 Author: mcol <mcol@posteo.net> Date: 2021-02-14 12:01:52 +0000 Committer: mcol <mcol@posteo.net> Committed: 2021-02-14 12:01:52 +0000 error if str_handler gets no arguments for config option
src/config.c Modified
@@ -102,6 +102,10 @@ static bool str_handler(struct binding *kb, char *data, int line) { + if (!data) { + wlr_log(WLR_ERROR, "Config line %i: requires arguments.", line); + return false; + } if (is_number(data)) { kb->data = calloc(1, sizeof(double)); *(double *)(kb->data) = strtod(data, NULL);