From 3dcf820a248a2e436193de84360919155611a306 Mon Sep 17 00:00:00 2001 From: Matteo Bini Date: Mon, 26 Aug 2024 10:15:53 +0200 Subject: [PATCH] Better name for function argument --- srohtml.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/srohtml.c b/srohtml.c index 983fcb2..37f77d1 100644 --- a/srohtml.c +++ b/srohtml.c @@ -58,7 +58,7 @@ static char *array_strcat_html(array *dst, const char *src, const html_val_type static void cmd(char *line); static void cmd_close(void); static void cmd_a(const char *line); -static void cmd_au_de_ti(char **str, const char *line); +static void cmd_au_de_ti(char **dst, const char *line); static void cmd_br(void); static void cmd_dt(const char *line); static void cmd_em(const char *line); @@ -291,7 +291,7 @@ cmd_a(const char *line) } void -cmd_au_de_ti(char **str, const char *line) +cmd_au_de_ti(char **dst, const char *line) { /* move past command */ line += 2; @@ -299,11 +299,11 @@ cmd_au_de_ti(char **str, const char *line) if (line[0] == ' ') line++; - if (*str != NULL) - free(*str); + if (*dst != NULL) + free(*dst); - *str = safe_malloc(sizeof(char) * (strlen(line) + 1)); - strcpy(*str, line); + *dst = safe_malloc(sizeof(char) * (strlen(line) + 1)); + strcpy(*dst, line); } void