mirror of
https://github.com/moparisthebest/curl
synced 2024-11-12 04:25:08 -05:00
parent
f41deddde8
commit
2bc373740a
@ -422,7 +422,7 @@ void parse_cert_parameter(const char *cert_parameter,
|
|||||||
/* escaped colons and Windows drive letter colons were handled
|
/* escaped colons and Windows drive letter colons were handled
|
||||||
* above; if we're still here, this is a separating colon */
|
* above; if we're still here, this is a separating colon */
|
||||||
param_place++;
|
param_place++;
|
||||||
if(strlen(param_place) > 0) {
|
if(*param_place) {
|
||||||
*passphrase = strdup(param_place);
|
*passphrase = strdup(param_place);
|
||||||
}
|
}
|
||||||
goto done;
|
goto done;
|
||||||
|
@ -85,7 +85,7 @@ char *add_file_name_to_url(char *url, const char *filename)
|
|||||||
else
|
else
|
||||||
ptr = url;
|
ptr = url;
|
||||||
ptr = strrchr(ptr, '/');
|
ptr = strrchr(ptr, '/');
|
||||||
if(!ptr || !strlen(++ptr)) {
|
if(!ptr || !*++ptr) {
|
||||||
/* The URL has no file name part, add the local file name. In order
|
/* The URL has no file name part, add the local file name. In order
|
||||||
to be able to do so, we have to create a new URL in another
|
to be able to do so, we have to create a new URL in another
|
||||||
buffer.*/
|
buffer.*/
|
||||||
|
Loading…
Reference in New Issue
Block a user