From e0cbb8f476b220ef80de9bbe8159435c78d4e921 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 3 Jun 2023 14:43:38 -0700 Subject: 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). --- src/til.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3