summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-06-03 14:08:19 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-06-03 14:08:19 -0700
commitb5a37e4b9b7343e96cae75f20056f5ab1c0a2c5a (patch)
tree584a67c2386b32889cd78083916ebe43643351eb /src
parent126f38df518b4a26886b69a418d748af4f759dcd (diff)
til: skip described settings in til_module_setup_randomize()
Preparatory commit for when settings are supplied by caller, potentially populated and described.
Diffstat (limited to 'src')
-rw-r--r--src/til.c3
1 files changed, 3 insertions, 0 deletions
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
© All Rights Reserved