#include <ctype.h>
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include "ll.h"
#include "decodekey.h"
-#include "log.h"
+#include "keystructs.h"
#include "wordlist.h"
/**
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,