diff options
author | 2014-01-01 15:12:41 -0800 | |
---|---|---|
committer | 2014-01-01 15:12:41 -0800 | |
commit | 108bfc4673929d3b881c8203745111738ec56dcb (patch) | |
tree | 5b150ffc81cca10d3138eb4dfda316087585b14c /src/core | |
parent | eef19e84fde4c277e251a337822685e102abee3a (diff) |
Return proper NULL delimiter
NULL will get cast to (char)0 properly, but casting ‘\0’ (technically
an int) better expresses the intent that we mean to return the
terminating char.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/imap/MCIMAPNamespace.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/imap/MCIMAPNamespace.cc b/src/core/imap/MCIMAPNamespace.cc index 1cfa5a3a..5364de6f 100644 --- a/src/core/imap/MCIMAPNamespace.cc +++ b/src/core/imap/MCIMAPNamespace.cc @@ -71,7 +71,7 @@ String * IMAPNamespace::mainPrefix() char IMAPNamespace::mainDelimiter() { if (mItems->count() == 0) - return NULL; + return (char) '\0'; return mainItem()->delimiter(); } |