diff options
Diffstat (limited to 'net/ftp')
-rw-r--r-- | net/ftp/ftp_directory_listing_parser.cc | 4 | ||||
-rw-r--r-- | net/ftp/ftp_directory_listing_parser.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/net/ftp/ftp_directory_listing_parser.cc b/net/ftp/ftp_directory_listing_parser.cc index 7d47725..dbb12ce 100644 --- a/net/ftp/ftp_directory_listing_parser.cc +++ b/net/ftp/ftp_directory_listing_parser.cc @@ -109,7 +109,9 @@ int DecodeAndParse(const std::string& text, } // namespace -FtpDirectoryListingEntry::FtpDirectoryListingEntry() { +FtpDirectoryListingEntry::FtpDirectoryListingEntry() + : type(UNKNOWN), + size(-1) { } int ParseFtpDirectoryListing(const std::string& text, diff --git a/net/ftp/ftp_directory_listing_parser.h b/net/ftp/ftp_directory_listing_parser.h index 56277e5..c0292ea 100644 --- a/net/ftp/ftp_directory_listing_parser.h +++ b/net/ftp/ftp_directory_listing_parser.h @@ -18,6 +18,7 @@ namespace net { struct FtpDirectoryListingEntry { enum Type { + UNKNOWN, FILE, DIRECTORY, SYMLINK, |