]> git.cworth.org Git - wordgame/blobdiff - dict.c
Ensure that there is at least one word using all letters in the rack.
[wordgame] / dict.c
diff --git a/dict.c b/dict.c
index b23da18b6024aca02e68a605a3a8037b56821eee..11ddaf1ebd1afe73db7ede92b7438c4622dd01f3 100644 (file)
--- a/dict.c
+++ b/dict.c
@@ -227,7 +227,8 @@ trie_for_each_of_length_if (trie_t          *trie,
     {
        count = 1;
 
-       action (closure, string->s, &trie->flags);
+       if (action)
+           action (closure, string->s, &trie->flags);
     }
 
     if (length == max_length)