diff options
Diffstat (limited to 'addressbook/backend/ebook')
-rw-r--r-- | addressbook/backend/ebook/e-book-util.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/addressbook/backend/ebook/e-book-util.c b/addressbook/backend/ebook/e-book-util.c index f9889522cb..2470d72950 100644 --- a/addressbook/backend/ebook/e-book-util.c +++ b/addressbook/backend/ebook/e-book-util.c @@ -503,7 +503,11 @@ e_book_nickname_query (EBook *book, guint retval; g_return_val_if_fail (E_IS_BOOK (book), 0); - g_return_val_if_fail (nickname && *nickname, 0); + g_return_val_if_fail (nickname != NULL, 0); + + /* The empty-string case shouldn't generate a warning. */ + if (! *nickname) + return 0; info = g_new0 (NicknameQueryInfo, 1); info->nickname = g_strdup (nickname); |