X-Git-Url: https://the.earth.li/gitweb/?p=onak.git;a=blobdiff_plain;f=wordlist.c;h=b594253951d95ba7ace86347c7fca7d4cbb493df;hp=605ec06967752a4209be7591c966d2209f6618d3;hb=72879375e37b8bbbd89fc641ddc102de804b3e1b;hpb=a75148cf51de7fe9112f5ba260e62828d5297979 diff --git a/wordlist.c b/wordlist.c index 605ec06..b594253 100644 --- a/wordlist.c +++ b/wordlist.c @@ -97,7 +97,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,