]> git.netwichtig.de Git - user/henk/code/exim.git/blobdiff - src/src/utf8.c
Expansions: errorcheck use of crypt() in the open-coded version of crypteq/crypt16
[user/henk/code/exim.git] / src / src / utf8.c
index 8a7cf38a346da35e4c60a07cbc57e3de71a0fe06..e394db0a8a8e59082dfa3d2d6f4a54696bbd92e8 100644 (file)
@@ -8,7 +8,7 @@
 
 #include "exim.h"
 
-#ifdef EXPERIMENTAL_INTERNATIONAL
+#ifdef SUPPORT_I18N
 
 #include <idna.h>
 #include <punycode.h>
@@ -18,7 +18,7 @@ BOOL
 string_is_utf8(const uschar * s)
 {
 uschar c;
-while ((c = *s++)) if (c & 0x80) return TRUE;
+if (s) while ((c = *s++)) if (c & 0x80) return TRUE;
 return FALSE;
 }