Fixes name for unnamed filters.

Thanks to Alexander V. Chernikov for the suggestion.
This commit is contained in:
Ondrej Zajicek 2012-03-15 12:50:49 +01:00
parent 7d837aa014
commit 8796a8a56e

View file

@ -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;
}