diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-11-08 14:56:38 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-11-08 14:56:38 +0100 |
commit | f2d690df12b65f5f4d5ba825d4d2970419bffaf4 (patch) | |
tree | 0bb39f275d03c61af7aeb3f7159c9a16b4ef23fc | |
parent | e82d4780d493ae14ae08772eebbd6672edc13ee5 (diff) | |
download | curl-bagder/potentially-uninitialized.tar.gz |
fixup try if an assert makes it happierbagder/potentially-uninitialized
-rw-r--r-- | src/tool_operate.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index 71166fa9d..e680746b9 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -887,6 +887,7 @@ static CURLcode single_transfer(struct GlobalConfig *global, fclose(etag_save->stream); break; } + DEBUGASSERT(per); /* to show the compiler per can't be NULL here */ per->etag_save = etag_first; /* copy the whole struct */ if(state->uploadfile) { per->uploadfile = strdup(state->uploadfile); |