aspell/aspell-make-static-filters.patch

12 lines
537 B
Diff

--- gen/mk-static-filter.pl
+++ gen/mk-static-filter.pl
@@ -159,7 +159,7 @@
printf STATICFILTERS "\n const KeyInfo * ".${$filter}{"NAME"}."_options_begin = ".
${$filter}{"NAME"}."_options;\n";
# If structure is empty, set options_end to same as options_begin.
- if (%{$filter}) {
+ if ($firstopt) {
printf STATICFILTERS "\n const KeyInfo * ".${$filter}{"NAME"}."_options_end = ".
${$filter}{"NAME"}."_options;\n";
} else {