diff options
Diffstat (limited to 'camel/camel-search-private.c')
-rw-r--r-- | camel/camel-search-private.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/camel/camel-search-private.c b/camel/camel-search-private.c index 3369409936..8aaccbf2e7 100644 --- a/camel/camel-search-private.c +++ b/camel/camel-search-private.c @@ -199,8 +199,9 @@ utf8_get (const char **inp) { const unsigned char *p = *inp; gunichar c; - - g_return_val_if_fail (p != NULL, 0); + + if (p == NULL) + return 0; c = g_utf8_get_char (p); *inp = g_unichar_validate (c) ? g_utf8_next_char (p) : NULL; |