fix logic bug in pick GREPaction
[mmh] / uip / pick.c
index 25bd6b6..7f0d3a9 100644 (file)
@@ -1095,7 +1095,7 @@ GREPaction(struct field *f, int msgnum, void *data)
        }
 
        /* check for the right field */
-       if (g->header && *g->header && mh_strcasecmp(g->header, f->name)==0) {
+       if (!(g->header && *g->header && mh_strcasecmp(g->header, f->name)==0)) {
                return FALSE;
        }
 
@@ -1282,7 +1282,6 @@ DATEfree(struct nexus **n)
        }
        dd = (*n)->data;
 
-       mh_free0(&dd->datef);
        mh_free0(n);
 }