mirror of
https://github.com/curl/curl.git
synced 2026-08-24 15:23:36 +03:00
parent
f41deddde8
commit
2bc373740a
2 changed files with 2 additions and 2 deletions
|
|
@ -85,7 +85,7 @@ char *add_file_name_to_url(char *url, const char *filename)
|
|||
else
|
||||
ptr = url;
|
||||
ptr = strrchr(ptr, '/');
|
||||
if(!ptr || !strlen(++ptr)) {
|
||||
if(!ptr || !*++ptr) {
|
||||
/* 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
|
||||
buffer.*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue