Commit 2bcd13aa authored by Yang Tse's avatar Yang Tse
Browse files

ANSI C compatibility fix

parent 20723cb7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -333,7 +333,8 @@ static CURLcode file_upload(struct connectdata *conn)
      failf(data, "Can't open %s for writing", file->path);
      return CURLE_WRITE_ERROR;
    }
    fp = fdopen(fd, "wb");
    close(fd);
    fp = fopen(file->path, "wb");
  }

  if(!fp) {