mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
Gisle Vanem's patch for variables that "might be used uninitialized"
This commit is contained in:
parent
27b7220f1b
commit
61e3d75def
@ -73,7 +73,7 @@ Curl_unencode_deflate_write(struct SessionHandle *data,
|
|||||||
ssize_t nread)
|
ssize_t nread)
|
||||||
{
|
{
|
||||||
int status; /* zlib status */
|
int status; /* zlib status */
|
||||||
int result; /* Curl_client_write status */
|
int result = CURLE_OK; /*?*/ /* Curl_client_write status */
|
||||||
char decomp[DSIZ]; /* Put the decompressed data here. */
|
char decomp[DSIZ]; /* Put the decompressed data here. */
|
||||||
z_stream *z = &k->z; /* zlib state structure */
|
z_stream *z = &k->z; /* zlib state structure */
|
||||||
|
|
||||||
@ -217,7 +217,7 @@ Curl_unencode_gzip_write(struct SessionHandle *data,
|
|||||||
ssize_t nread)
|
ssize_t nread)
|
||||||
{
|
{
|
||||||
int status; /* zlib status */
|
int status; /* zlib status */
|
||||||
int result; /* Curl_client_write status */
|
int result = CURLE_OK; /*?*/ /* Curl_client_write status */
|
||||||
char decomp[DSIZ]; /* Put the decompressed data here. */
|
char decomp[DSIZ]; /* Put the decompressed data here. */
|
||||||
z_stream *z = &k->z; /* zlib state structure */
|
z_stream *z = &k->z; /* zlib state structure */
|
||||||
|
|
||||||
|
@ -783,7 +783,7 @@ static CURLcode verifyhost(struct connectdata *conn,
|
|||||||
char peer_CN[257];
|
char peer_CN[257];
|
||||||
bool matched = FALSE; /* no alternative match yet */
|
bool matched = FALSE; /* no alternative match yet */
|
||||||
int target = GEN_DNS; /* target type, GEN_DNS or GEN_IPADD */
|
int target = GEN_DNS; /* target type, GEN_DNS or GEN_IPADD */
|
||||||
int addrlen;
|
int addrlen = 0;
|
||||||
struct SessionHandle *data = conn->data;
|
struct SessionHandle *data = conn->data;
|
||||||
STACK_OF(GENERAL_NAME) *altnames;
|
STACK_OF(GENERAL_NAME) *altnames;
|
||||||
#ifdef ENABLE_IPV6
|
#ifdef ENABLE_IPV6
|
||||||
@ -809,9 +809,9 @@ static CURLcode verifyhost(struct connectdata *conn,
|
|||||||
altnames = X509_get_ext_d2i(server_cert, NID_subject_alt_name, NULL, NULL);
|
altnames = X509_get_ext_d2i(server_cert, NID_subject_alt_name, NULL, NULL);
|
||||||
|
|
||||||
if(altnames) {
|
if(altnames) {
|
||||||
int hostlen;
|
int hostlen = 0;
|
||||||
int domainlen;
|
int domainlen = 0;
|
||||||
char *domain;
|
char *domain = NULL;
|
||||||
int numalts;
|
int numalts;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
@ -2567,7 +2567,7 @@ operate(struct Configurable *config, int argc, char *argv[])
|
|||||||
|
|
||||||
int separator = 0;
|
int separator = 0;
|
||||||
|
|
||||||
FILE *infd;
|
FILE *infd = stdin;
|
||||||
bool infdfopen;
|
bool infdfopen;
|
||||||
FILE *headerfilep = NULL;
|
FILE *headerfilep = NULL;
|
||||||
char *urlbuffer=NULL;
|
char *urlbuffer=NULL;
|
||||||
|
@ -435,8 +435,8 @@ char *glob_match_url(char *filename, URLGlob *glob)
|
|||||||
int allocsize;
|
int allocsize;
|
||||||
int stringlen=0;
|
int stringlen=0;
|
||||||
char numbuf[18];
|
char numbuf[18];
|
||||||
char *appendthis;
|
char *appendthis = NULL;
|
||||||
int appendlen;
|
int appendlen = 0;
|
||||||
|
|
||||||
/* We cannot use the glob_buffer for storage here since the filename may
|
/* We cannot use the glob_buffer for storage here since the filename may
|
||||||
* be longer than the URL we use. We allocate a good start size, then
|
* be longer than the URL we use. We allocate a good start size, then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user