| Index: net/ftp/ftp_network_transaction.cc
|
| ===================================================================
|
| --- net/ftp/ftp_network_transaction.cc (revision 42180)
|
| +++ net/ftp/ftp_network_transaction.cc (working copy)
|
| @@ -739,7 +739,7 @@
|
| }
|
| if (system_type_ == SYSTEM_TYPE_VMS)
|
| line = FtpUtil::VMSPathToUnix(line);
|
| - if (line[line.length() - 1] == '/')
|
| + if (line.length() && line[line.length() - 1] == '/')
|
| line.erase(line.length() - 1);
|
| current_remote_directory_ = line;
|
| next_state_ = STATE_CTRL_WRITE_TYPE;
|
|
|