fix compiler warning: statement is not reachable
This commit is contained in:
parent
7e3f0bffe5
commit
5580fb2b9c
@ -642,10 +642,9 @@ CURL *curl_easy_duphandle(CURL *incurl)
|
|||||||
* the likeliness of us forgetting to init a buffer here in the future.
|
* the likeliness of us forgetting to init a buffer here in the future.
|
||||||
*/
|
*/
|
||||||
outcurl->state.headerbuff = malloc(HEADERSIZE);
|
outcurl->state.headerbuff = malloc(HEADERSIZE);
|
||||||
if(!outcurl->state.headerbuff) {
|
if(!outcurl->state.headerbuff)
|
||||||
break;
|
break;
|
||||||
}
|
outcurl->state.headersize = HEADERSIZE;
|
||||||
outcurl->state.headersize=HEADERSIZE;
|
|
||||||
|
|
||||||
/* copy all userdefined values */
|
/* copy all userdefined values */
|
||||||
if(Curl_dupset(outcurl, data) != CURLE_OK)
|
if(Curl_dupset(outcurl, data) != CURLE_OK)
|
||||||
@ -667,9 +666,8 @@ CURL *curl_easy_duphandle(CURL *incurl)
|
|||||||
data->cookies->filename,
|
data->cookies->filename,
|
||||||
outcurl->cookies,
|
outcurl->cookies,
|
||||||
data->set.cookiesession);
|
data->set.cookiesession);
|
||||||
if(!outcurl->cookies) {
|
if(!outcurl->cookies)
|
||||||
break;
|
break;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endif /* CURL_DISABLE_HTTP */
|
#endif /* CURL_DISABLE_HTTP */
|
||||||
|
|
||||||
@ -721,7 +719,6 @@ CURL *curl_easy_duphandle(CURL *incurl)
|
|||||||
|
|
||||||
fail = FALSE; /* we reach this point and thus we are OK */
|
fail = FALSE; /* we reach this point and thus we are OK */
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(fail) {
|
if(fail) {
|
||||||
|
@ -3615,7 +3615,7 @@ static CURLcode wc_statemach(struct connectdata *conn)
|
|||||||
return CURLE_REMOTE_FILE_NOT_FOUND;
|
return CURLE_REMOTE_FILE_NOT_FOUND;
|
||||||
}
|
}
|
||||||
return wc_statemach(conn);
|
return wc_statemach(conn);
|
||||||
} break;
|
}
|
||||||
|
|
||||||
case CURLWC_DOWNLOADING: {
|
case CURLWC_DOWNLOADING: {
|
||||||
/* filelist has at least one file, lets get first one */
|
/* filelist has at least one file, lets get first one */
|
||||||
@ -3684,7 +3684,7 @@ static CURLcode wc_statemach(struct connectdata *conn)
|
|||||||
wildcard->state = (wildcard->filelist->size == 0) ?
|
wildcard->state = (wildcard->filelist->size == 0) ?
|
||||||
CURLWC_CLEAN : CURLWC_DOWNLOADING;
|
CURLWC_CLEAN : CURLWC_DOWNLOADING;
|
||||||
return wc_statemach(conn);
|
return wc_statemach(conn);
|
||||||
} break;
|
}
|
||||||
|
|
||||||
case CURLWC_CLEAN: {
|
case CURLWC_CLEAN: {
|
||||||
struct ftp_wc_tmpdata *ftp_tmp = wildcard->tmp;
|
struct ftp_wc_tmpdata *ftp_tmp = wildcard->tmp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user