diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2012-03-15 12:50:49 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2012-03-15 12:50:49 +0100 |
commit | 8796a8a56edbcd420de724a58947c7aedadf04de (patch) | |
tree | b7e4189f8bf8cbfb3288ca03b9ca7ab554ab9fe6 /filter | |
parent | 7d837aa014a78bce2b329cc9f56e8dc799d456e8 (diff) |
Fixes name for unnamed filters.
Thanks to Alexander V. Chernikov for the suggestion.
Diffstat (limited to 'filter')
-rw-r--r-- | filter/f-util.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |