git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Close logfile after a while waiting for non-smtp input. Bug 1891
[exim.git]
/
src
/
src
/
utf8.c
diff --git
a/src/src/utf8.c
b/src/src/utf8.c
index 84ad1dc18f5744ecb8841df1f354726e57888704..e394db0a8a8e59082dfa3d2d6f4a54696bbd92e8 100644
(file)
--- a/
src/src/utf8.c
+++ b/
src/src/utf8.c
@@
-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;
}