Use m_functions(), you'll be fresh-faced.
[apps/madmutt.git] / lib-lib / rx.c
index 21cbd33..0edce59 100644 (file)
@@ -125,11 +125,11 @@ int rx_list_match2(rx_t *l, const char *s, char *dst, int dlen)
 
 rx_t **rx_lookup(rx_t **l, const char *pat)
 {
-    if (!pat || !*pat)
+    if (m_strisempty(pat))
         return NULL;
 
     while (*l) {
-        if (!strcmp((*l)->pattern, pat))
+        if (!m_strcmp((*l)->pattern, pat))
             return l;
         l = &(*l)->next;
     }