Commit bf091be7 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

chars: don't try to see a character in an empty line

This fixes https://savannah.gnu.org/bugs/?48578.
parent 103dd063
Showing with 3 additions and 0 deletions
+3 -0
......@@ -190,6 +190,9 @@ bool is_word_mbchar(const char *c, bool allow_punct)
{
assert(c != NULL);
if (*c == '\0')
return FALSE;
if (is_alnum_mbchar(c))
return TRUE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment