]> git.ipfire.org Git - thirdparty/curl.git/commit
cookie: clarify that init with data set to NULL reads no file
authorDaniel Stenberg <daniel@haxx.se>
Tue, 11 Apr 2023 12:14:09 +0000 (14:14 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 11 Apr 2023 21:49:50 +0000 (23:49 +0200)
commitb1b326ec500bc8c11e9a6750036e509cb9e0a4cf
tree22b92ff81836a23c06ca088e5881b177676ffa65
parenta1763648a5825f571afb7b1602450eb6a97908a0
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
lib/cookie.c
lib/cookie.h