From: Kevin Day Date: Sat, 8 Feb 2025 22:03:30 +0000 (-0600) Subject: Bugfix: Incorrect clear macro on f_account_t(). X-Git-Tag: 0.6.13~7 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=ffabf561d62c68c3c23fb771ee096c4f7e1aeb1a;p=fll Bugfix: Incorrect clear macro on f_account_t(). The `macro_f_account_t_clear()` is calling its own macro for the dynamic string values. This is entirely incorrect. Use the proper `macro_f_string_dynamic_t_clear()` macro calls. --- diff --git a/level_0/f_account/c/account/common.h b/level_0/f_account/c/account/common.h index c1d732a..229506a 100644 --- a/level_0/f_account/c/account/common.h +++ b/level_0/f_account/c/account/common.h @@ -64,11 +64,11 @@ extern "C" { #define macro_f_account_t_clear(account) \ account.id_user = -1; \ account.id_group = -1; \ - macro_f_account_t_clear(account.home); \ - macro_f_account_t_clear(account.label); \ - macro_f_account_t_clear(account.name); \ - macro_f_account_t_clear(account.password); \ - macro_f_account_t_clear(account.shell); + macro_f_string_dynamic_t_clear(account.home); \ + macro_f_string_dynamic_t_clear(account.label); \ + macro_f_string_dynamic_t_clear(account.name); \ + macro_f_string_dynamic_t_clear(account.password); \ + macro_f_string_dynamic_t_clear(account.shell); #define macro_f_account_t_delete_simple(account) \ macro_f_string_dynamic_t_delete_simple(account.home); \