X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=gettext-tools%2Fsrc%2Fformat-scheme.c;h=adc1cc62d54944c33a38952739fb92509fda0977;hb=refs%2Fchanges%2F82%2F71082%2F1;hp=fd315fac9076eca881e178216d2dae05d1632860;hpb=5d61132f836323aaf2879e04abc9d4056db248a2;p=platform%2Fupstream%2Fgettext.git diff --git a/gettext-tools/src/format-scheme.c b/gettext-tools/src/format-scheme.c index fd315fa..adc1cc6 100644 --- a/gettext-tools/src/format-scheme.c +++ b/gettext-tools/src/format-scheme.c @@ -1,5 +1,5 @@ /* Scheme format strings. - Copyright (C) 2001-2007, 2009 Free Software Foundation, Inc. + Copyright (C) 2001-2007, 2009, 2015 Free Software Foundation, Inc. Written by Bruno Haible , 2001. This program is free software: you can redistribute it and/or modify @@ -1285,10 +1285,12 @@ make_intersected_list (struct format_arg_list *list1, /* Intersect the argument types. */ if (!make_intersected_element (re, e1, e2)) { + bool re_is_required = re->presence == FCT_REQUIRED; + append_repeated_to_initial (result); /* If re->presence == FCT_OPTIONAL, the result list ends here. */ - if (re->presence == FCT_REQUIRED) + if (re_is_required) /* Contradiction. Backtrack. */ result = backtrack_in_initial (result);