From b5a37e4b9b7343e96cae75f20056f5ab1c0a2c5a Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 3 Jun 2023 14:08:19 -0700 Subject: til: skip described settings in til_module_setup_randomize() Preparatory commit for when settings are supplied by caller, potentially populated and described. --- src/til.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/til.c b/src/til.c index 0abcc17..b9ccde0 100644 --- a/src/til.c +++ b/src/til.c @@ -412,6 +412,9 @@ int til_module_setup_randomize(const til_module_t *module, unsigned seed, til_se assert(setting); + if (setting->desc) + continue; + /* * TODO This probably also needs to move into a til_settings helper, * copy-n-pasta alert, taken from setup.c -- cgit v1.2.3