mirror of
https://github.com/curl/curl.git
synced 2026-05-30 03:07:28 +03:00
parent
eb22e37060
commit
1afc4bb768
1 changed files with 1 additions and 0 deletions
|
|
@ -362,6 +362,7 @@ static ParameterError addvariable(const char *name,
|
|||
p = calloc(1, sizeof(struct tool_var) + nlen);
|
||||
if(p) {
|
||||
memcpy(p->name, name, nlen);
|
||||
/* the null termination byte is already present from above */
|
||||
|
||||
p->content = contalloc ? content : memdup0(content, clen);
|
||||
if(p->content) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue