Commit: cb973b87672540e0448b66c5ee4bf7443f1e81f5
Parent: a7699b943525b3c9784765faeb9bb636896b571c
Author: Randy Palamar
Date: Sun, 19 Jun 2022 20:04:03 -0600
don't return when a term isn't found
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/jdict.c b/jdict.c
@@ -224,8 +224,8 @@ find_and_print_defs(char **terms, size_t nterms, struct Dict *dicts, size_t ndic
for (j = 0; j < nterms; j++) {
ent = find_ent(terms[j], ents, nents);
if (ent == NULL) {
- printf("term not found: %s\n", terms[j]);
- return -1;
+ printf("term not found: %s\n\n", terms[j]);
+ continue;
}
print_ent(ent);
}