int size = 0;
size_t slen;
uschar *sptr, *yield = NULL;
-int i, j;
-uschar c;
+int i = 0, j; /* compiler quietening */
+uschar c = 0; /* compiler quietening */
BOOL base64mode = FALSE;
BOOL lastsep = FALSE;
uschar utf16buf[256];
iconv_t icd;
#endif
-if (!specials) specials = "";
+if (!specials) specials = US"";
/* Pass over the string. If it consists entirely of "normal" characters
(possibly with leading seps), return it as is. */
|| *s < 0x20
|| strchr("./&", *s)
|| *s == sep
- || strchr(specials, *s)
+ || Ustrchr(specials, *s)
)
break;
}
slen = Ustrlen(string);
#if HAVE_ICONV
-if ((icd = iconv_open(US"UTF-16BE", charset)) == (iconv_t)-1)
+if ((icd = iconv_open("UTF-16BE", CCS charset)) == (iconv_t)-1)
{
*error = string_sprintf(
"imapfolder: iconv_open(\"UTF-16BE\", \"%s\") failed: %s%s",
if ( s[0] != 0
|| s[1] >= 0x7f
|| s[1] < 0x20
- || (strchr(specials, s[1]) && s[1] != sep)
+ || (Ustrchr(specials, s[1]) && s[1] != sep)
)
{
lastsep = FALSE;