mirror of
https://github.com/curl/curl.git
synced 2026-04-27 00:12:14 +03:00
prevent strdup()ing NULL -- Paul Harrington's report
This commit is contained in:
parent
c046dc904c
commit
6d35984286
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ Curl_cookie_add(struct CookieInfo *c,
|
|||
|
||||
if(NULL == co->domain)
|
||||
/* no domain given in the header line, set the default now */
|
||||
co->domain=strdup(domain);
|
||||
co->domain=domain?strdup(domain):NULL;
|
||||
}
|
||||
else {
|
||||
/* This line is NOT a HTTP header style line, we do offer support for
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue