0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-17 16:48:43 +00:00

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