X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=wordlist.c;h=e40fe82dc080736120e7c2cb581a8f17aee0643e;hb=0c120d1895d25b59abe338862189be1b87447569;hp=605ec06967752a4209be7591c966d2209f6618d3;hpb=5e1b22d763640c4d7a09d07920403d8d491b4410;p=onak.git diff --git a/wordlist.c b/wordlist.c index 605ec06..e40fe82 100644 --- a/wordlist.c +++ b/wordlist.c @@ -19,11 +19,12 @@ #include #include +#include #include #include "ll.h" #include "decodekey.h" -#include "log.h" +#include "keystructs.h" #include "wordlist.h" /** @@ -97,7 +98,7 @@ struct ll *makewordlistfromkey(struct ll *wordlist, struct ll *wl = NULL; uids = keyuids(key, NULL); - for (i = 0; uids[i] != NULL; ++i) { + for (i = 0; uids != NULL && uids[i] != NULL; ++i) { words = makewordlist(NULL, uids[i]); for (wl = words; wl != NULL; wl = wl->next) { if (llfind(wordlist, wl->object,