]> 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 84ad1dc18f5744ecb8841df1f354726e57888704..e394db0a8a8e59082dfa3d2d6f4a54696bbd92e8 100644 (file)
@@ -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;
 }