]> diplodocus.org Git - nmh/blobdiff - sbr/context_find.c
Added tests of MMDF mailbox format to test-eom-align.
[nmh] / sbr / context_find.c
index afeff37ec3e4c54c5289417ba9ce8ef9f3253162..f4fe7ed1303035120e68ff9b3d7d8032e2b81edf 100644 (file)
@@ -13,9 +13,10 @@ context_find (const char *str)
 {
     struct node *np;
 
+    str = FENDNULL(str);
     for (np = m_defs; np; np = np->n_next)
-       if (!strcasecmp (FENDNULL(np->n_name), FENDNULL(str)))
-           return (np->n_field);
+       if (!strcasecmp(FENDNULL(np->n_name), str))
+           return np->n_field;
 
     return NULL;
 }