refactor: replace malloc with g_new0 in many occasions

This commit is contained in:
Michael Vetter
2026-02-27 00:38:28 +01:00
parent de5949e8eb
commit 373ec4a7e3
19 changed files with 56 additions and 56 deletions

View File

@@ -50,7 +50,7 @@ cmd_account_list_shows_accounts(void** state)
{
gchar* args[] = { "list", NULL };
gchar** accounts = malloc(sizeof(gchar*) * 4);
gchar** accounts = g_new0(gchar, 4);
accounts[0] = strdup("account1");
accounts[1] = strdup("account2");
accounts[2] = strdup("account3");