diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-06-03 14:43:38 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-06-03 14:43:38 -0700 |
commit | e0cbb8f476b220ef80de9bbe8159435c78d4e921 (patch) | |
tree | 28c468e44fb151829f30dc4cf38a8d3fa7fa4b4d /src | |
parent | 2c58bc3a9821faa454dcd270815f9e001f825b6a (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).
Diffstat (limited to 'src')
-rw-r--r-- | src/til.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |