X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/d2f12554a254e814dcdafb3828fc0d9936154eef..23dde40d04b6cd6c8e6b266678df12dece44f7ee:/sbr/context_find.c diff --git a/sbr/context_find.c b/sbr/context_find.c index f96d0b3a..7c809ec1 100644 --- a/sbr/context_find.c +++ b/sbr/context_find.c @@ -2,8 +2,6 @@ /* * context_find.c -- find an entry in the context/profile list * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -18,7 +16,7 @@ context_find (char *str) struct node *np; for (np = m_defs; np; np = np->n_next) - if (!mh_strcasecmp (np->n_name, str)) + if (!strcasecmp (np->n_name ? np->n_name : "", str ? str : "")) return (np->n_field); return NULL;