X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fcontext_replace.c;h=dd6e63149d4d647b63a2e5734853a34b178c55ba;hp=6b3aa2f9742b349e0a9d1ac0cd32e4b177a9b3cf;hb=5ba9c2f13fedf1d8d6ed907ef1f505616290efaa;hpb=714b5c530ece27ea2835a313013f5b770163403c diff --git a/sbr/context_replace.c b/sbr/context_replace.c index 6b3aa2f..dd6e631 100644 --- a/sbr/context_replace.c +++ b/sbr/context_replace.c @@ -13,7 +13,7 @@ void context_replace(char *key, char *value) { - register struct node *np; + struct node *np; /* ** If list is emtpy, allocate head of profile/context list. @@ -36,7 +36,7 @@ context_replace(char *key, char *value) */ for (np = m_defs;; np = np->n_next) { if (!mh_strcasecmp(np->n_name, key)) { - if (strcmp(value, np->n_field)) { + if (strcmp(value, np->n_field)!=0) { if (!np->n_context) admonish(NULL, "bug: context_replace(key=\"%s\",value=\"%s\")", key, value); if (np->n_field)