]> Kevux Git Server - fll/commitdiff
Bugfix: Incorrect clear macro on f_account_t().
authorKevin Day <Kevin@kevux.org>
Sat, 8 Feb 2025 22:03:30 +0000 (16:03 -0600)
committerKevin Day <Kevin@kevux.org>
Sat, 8 Feb 2025 22:31:38 +0000 (16:31 -0600)
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

index c1d732ae510812f2c43898317c25f051e70ae394..229506a9fde68b1114696d12b6106df97c5457be 100644 (file)
@@ -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); \