Better name for function argument
This commit is contained in:
parent
a636fe0a1b
commit
3dcf820a24
12
srohtml.c
12
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
|
||||
|
|
Loading…
Reference in New Issue