1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

fix potential use of uninitialized variables

MSVC with LTCG detects this at warning level 4.

Closes #1304
This commit is contained in:
Andrew Krieger 2017-03-03 16:17:24 -08:00 committed by Daniel Stenberg
parent 658b9a200a
commit 7b1430c0b4
2 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ const struct Curl_handler Curl_handler_dict = {
static char *unescape_word(struct Curl_easy *data, const char *inputbuff)
{
char *newp;
char *newp = NULL;
char *dictp;
char *ptr;
size_t len;

View File

@ -78,7 +78,7 @@ static CURLcode gopher_do(struct connectdata *conn, bool *done)
curl_off_t *bytecount = &data->req.bytecount;
char *path = data->state.path;
char *sel;
char *sel = NULL;
char *sel_org = NULL;
ssize_t amount, k;
size_t len;