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

This fixes https://savannah.gnu.org/bugs/?48578.
master
Benno Schulenberg 2016-07-21 09:46:47 +02:00
parent 103dd06347
commit bf091be778
1 changed files with 3 additions and 0 deletions

View File

@ -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;