mirror of
https://github.com/curl/curl.git
synced 2026-08-25 04:53:31 +03:00
lib: add a few DEBUGASSERT(data) to aid code analyzers
... where 'data' is assumed to always work. Closes #14033
This commit is contained in:
parent
ffe193c991
commit
9a49af5fd8
2 changed files with 4 additions and 1 deletions
|
|
@ -1010,8 +1010,9 @@ void Curl_detach_connection(struct Curl_easy *data)
|
|||
* This is the only function that should assign data->conn
|
||||
*/
|
||||
void Curl_attach_connection(struct Curl_easy *data,
|
||||
struct connectdata *conn)
|
||||
struct connectdata *conn)
|
||||
{
|
||||
DEBUGASSERT(data);
|
||||
DEBUGASSERT(!data->conn);
|
||||
DEBUGASSERT(conn);
|
||||
data->conn = conn;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue