Change debug logging to match other similar about sort
[pazpar2-moved-to-github.git] / src / relevance.c
index b9fc0e1..a3ee82d 100644 (file)
@@ -50,7 +50,7 @@ static int word_entry_match(struct word_entry *entries, const char *norm_str,
 {
     for (; entries; entries = entries->next)
     {
-        if (!strcmp(norm_str, entries->norm_str))
+        if (*norm_str && !strcmp(norm_str, entries->norm_str))
         {
             const char *cp = 0;
             int no_read = 0;