diff options
author | Daniel Stenberg <daniel@haxx.se> | 2023-04-11 14:14:09 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-04-11 23:49:50 +0200 |
commit | b1b326ec500bc8c11e9a6750036e509cb9e0a4cf (patch) | |
tree | 22b92ff81836a23c06ca088e5881b177676ffa65 /lib/cookie.h | |
parent | a1763648a5825f571afb7b1602450eb6a97908a0 (diff) | |
download | curl-b1b326ec500bc8c11e9a6750036e509cb9e0a4cf.tar.gz |
cookie: clarify that init with data set to NULL reads no file
... and make Curl_cookie_add() require 'data' being set proper with an
assert.
The function has not worked with a NULL data for quite some time so this
just corrects the code and comment.
This is a different take than the proposed fixed in #10927
Reported-by: Kvarec Lezki
Ref: #10929
Closes #10930
Diffstat (limited to 'lib/cookie.h')
-rw-r--r-- | lib/cookie.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/cookie.h b/lib/cookie.h index 39bb08bc4..c588bbbb8 100644 --- a/lib/cookie.h +++ b/lib/cookie.h @@ -61,7 +61,6 @@ struct Cookie { struct CookieInfo { /* linked list of cookies we know of */ struct Cookie *cookies[COOKIE_HASH_SIZE]; - char *filename; /* file we read from/write to */ long numcookies; /* number of cookies in the "jar" */ bool running; /* state info, for cookie adding information */ |