Commit 7b1430c0 authored by Andrew Krieger's avatar Andrew Krieger Committed by Daniel Stenberg
Browse files

fix potential use of uninitialized variables

MSVC with LTCG detects this at warning level 4.

Closes #1304
parent 658b9a20
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
+1 −1
Original line number Diff line number Diff line
@@ -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;