]> git.ipfire.org Git - thirdparty/curl.git/commit
cookies: make use of string duplication function
authorDaniel Gustafsson <daniel@yesql.se>
Fri, 12 Mar 2021 16:36:08 +0000 (17:36 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 11 May 2021 06:45:17 +0000 (08:45 +0200)
commit98888e6070a64e291914164cc1a0af5e3df2b0c2
tree84a6c3a06d905494b19f2abe0e8c70d22d65e15e
parent54bd65cabd6ac619fe4ea25e2746e0117f89f170
cookies: make use of string duplication function

strstore() is defined as a strdup which ensures to free the target
pointer before duping the source char * into it. Make use of it in
two more cases where it can simplify the code.
lib/cookie.c