From e22e7b20d6fa0731db95e3bf17c66f002784828b Mon Sep 17 00:00:00 2001 From: Dennis Schafroth Date: Tue, 21 Aug 2012 16:41:56 +0200 Subject: [PATCH] Extra check on suggestion string and punctuation in debug to see end --- src/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client.c b/src/client.c index 56f927d..ba9bab4 100644 --- a/src/client.c +++ b/src/client.c @@ -1429,11 +1429,11 @@ struct suggestions* client_suggestions_create(const char* suggestions_string) int i; NMEM nmem; struct suggestions *suggestions; - if (suggestions_string == 0) + if (suggestions_string == 0 || suggestions_string[0] == 0 ) return 0; nmem = nmem_create(); suggestions = nmem_malloc(nmem, sizeof(*suggestions)); - yaz_log(YLOG_DEBUG, "client target suggestions: %s", suggestions_string); + yaz_log(YLOG_DEBUG, "client target suggestions: %s.", suggestions_string); suggestions->nmem = nmem; suggestions->num = 0; -- 1.7.10.4