fix compiler warning
This commit is contained in:
@@ -1393,6 +1393,7 @@ static CURLcode ftp_state_post_listtype(struct connectdata *conn)
|
|||||||
|
|
||||||
/* chop off the file part if format is dir/dir/file */
|
/* chop off the file part if format is dir/dir/file */
|
||||||
slashPos = strrchr(lstArg,'/');
|
slashPos = strrchr(lstArg,'/');
|
||||||
|
if(slashPos)
|
||||||
*(slashPos+1) = '\0';
|
*(slashPos+1) = '\0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user