From 8796a8a56edbcd420de724a58947c7aedadf04de Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Thu, 15 Mar 2012 12:50:49 +0100 Subject: [PATCH] Fixes name for unnamed filters. Thanks to Alexander V. Chernikov for the suggestion. --- filter/f-util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/filter/f-util.c b/filter/f-util.c index 9f2eb6b3..ec86a4b2 100644 --- a/filter/f-util.c +++ b/filter/f-util.c @@ -61,6 +61,8 @@ filter_name(struct filter *filter) return "ACCEPT"; else if (filter == FILTER_REJECT) return "REJECT"; + else if (!filter->name) + return "(unnamed)"; else return filter->name; }