proper handling of regex lists.
[apps/madmutt.git] / init.c
diff --git a/init.c b/init.c
index 775cb21..9d6908b 100644 (file)
--- a/init.c
+++ b/init.c
@@ -582,7 +582,7 @@ static int remove_from_rx_list(rx_t **l, const char *str)
     }
 
     l = rx_lookup(l, str);
-    if (l) {
+    if (*l) {
         rx_t *r = rx_list_pop(l);
         rx_delete(&r);
         return 0;