aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Robert Widmann <devteam.codafi@gmail.com>2014-01-01 15:12:41 -0800
committerGravatar Robert Widmann <devteam.codafi@gmail.com>2014-01-01 15:12:41 -0800
commit108bfc4673929d3b881c8203745111738ec56dcb (patch)
tree5b150ffc81cca10d3138eb4dfda316087585b14c /src/core
parenteef19e84fde4c277e251a337822685e102abee3a (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.cc2
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();
}