summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-06-03 14:43:38 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-06-03 14:43:38 -0700
commite0cbb8f476b220ef80de9bbe8159435c78d4e921 (patch)
tree28c468e44fb151829f30dc4cf38a8d3fa7fa4b4d
parent2c58bc3a9821faa454dcd270815f9e001f825b6a (diff)
til: fix spurious empty res_arg in til_module_setup_randomize()
r variable is checked for zero(success) before writing to *res_arg, but could be left uninitialized (especially in a future scenario where an incoming til_settings_t is fully populated and described).
-rw-r--r--src/til.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/til.c b/src/til.c
index 6054014..8a11597 100644
--- a/src/til.c
+++ b/src/til.c
@@ -357,7 +357,7 @@ int til_module_setup_randomize(const til_module_t *module, unsigned seed, til_se
til_settings_t *settings;
til_setting_t *setting;
const til_setting_desc_t *desc;
- int r;
+ int r = 0;
assert(module);
© All Rights Reserved