From ffabf561d62c68c3c23fb771ee096c4f7e1aeb1a Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 8 Feb 2025 16:03:30 -0600 Subject: [PATCH] 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. --- level_0/f_account/c/account/common.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); \ -- 1.8.3.1