diff options
author | Vincent Richard <[email protected]> | 2005-01-02 14:10:16 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-01-02 14:10:16 +0000 |
commit | c843f40ff3e6e28e20c3b4c68172d9e69be9885d (patch) | |
tree | 7d879f83171dfc9207b581a2d9038e093c0cc39d /src/messaging/IMAPFolder.cpp | |
parent | Added unit tests for 'utility::stringProxy' and 'utility::stringUtils'. (diff) | |
download | vmime-c843f40ff3e6e28e20c3b4c68172d9e69be9885d.tar.gz vmime-c843f40ff3e6e28e20c3b4c68172d9e69be9885d.zip |
Added unit tests for 'utility::path'.
Diffstat (limited to 'src/messaging/IMAPFolder.cpp')
-rw-r--r-- | src/messaging/IMAPFolder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/messaging/IMAPFolder.cpp b/src/messaging/IMAPFolder.cpp index ce5b5236..f197f360 100644 --- a/src/messaging/IMAPFolder.cpp +++ b/src/messaging/IMAPFolder.cpp @@ -40,8 +40,8 @@ namespace messaging { IMAPFolder::IMAPFolder(const folder::path& path, IMAPStore* store, const int type, const int flags) : m_store(store), m_connection(m_store->connection()), m_path(path), - m_name(path.getLastComponent()), m_mode(-1), m_open(false), m_type(type), m_flags(flags), - m_messageCount(0), m_uidValidity(0) + m_name(path.isEmpty() ? folder::path::component("") : path.getLastComponent()), m_mode(-1), + m_open(false), m_type(type), m_flags(flags), m_messageCount(0), m_uidValidity(0) { m_store->registerFolder(this); } |