From: Dennis Schafroth Date: Tue, 21 Aug 2012 14:41:56 +0000 (+0200) Subject: Extra check on suggestion string and punctuation in debug to see end X-Git-Tag: v1.6.16~3^2~3 X-Git-Url: http://git.indexdata.com/?p=pazpar2-moved-to-github.git;a=commitdiff_plain;h=e22e7b20d6fa0731db95e3bf17c66f002784828b Extra check on suggestion string and punctuation in debug to see end --- 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;