mirror of
https://github.com/curl/curl.git
synced 2026-05-14 19:46:26 +03:00
fix compiler warning
This commit is contained in:
parent
4b8f13e902
commit
d0a48627b2
1 changed files with 2 additions and 1 deletions
|
|
@ -1393,7 +1393,8 @@ static CURLcode ftp_state_post_listtype(struct connectdata *conn)
|
|||
|
||||
/* chop off the file part if format is dir/dir/file */
|
||||
slashPos = strrchr(lstArg,'/');
|
||||
*(slashPos+1) = '\0';
|
||||
if(slashPos)
|
||||
*(slashPos+1) = '\0';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue