diff options
author | Yang Tse <yangsita@gmail.com> | 2008-10-10 02:14:46 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-10-10 02:14:46 +0000 |
commit | d0a48627b2976db73ec02003b1f2772018438e90 (patch) | |
tree | 0d7abb889c835b49c49a96c94bafca5fb1a0f4d0 | |
parent | 4b8f13e902abe1fcbf4052a598b4bde2d3233635 (diff) |
fix compiler warning
-rw-r--r-- | lib/ftp.c | 3 |
1 files changed, 2 insertions, 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'; } } |