diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-10-28 09:28:05 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-10-30 09:36:21 +0100 |
commit | dcd7e37c3a0ce108635b89cacc1e3425e57bd3bc (patch) | |
tree | 97213435d44104e4217159001944504ce518158d /lib/url.h | |
parent | 4011802b35638e311e548e8893fa74373275145a (diff) | |
download | curl-dcd7e37c3a0ce108635b89cacc1e3425e57bd3bc.tar.gz |
url: make Curl_close() NULLify the pointer too
This is the common pattern used in the code and by a unified approach we
avoid mistakes.
Closes #4534
Diffstat (limited to 'lib/url.h')
-rw-r--r-- | lib/url.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -49,7 +49,7 @@ CURLcode Curl_init_userdefined(struct Curl_easy *data); void Curl_freeset(struct Curl_easy * data); CURLcode Curl_uc_to_curlcode(CURLUcode uc); -CURLcode Curl_close(struct Curl_easy *data); /* opposite of curl_open() */ +CURLcode Curl_close(struct Curl_easy **datap); /* opposite of curl_open() */ CURLcode Curl_connect(struct Curl_easy *, bool *async, bool *protocol_connect); CURLcode Curl_disconnect(struct Curl_easy *data, struct connectdata *, bool dead_connection); |