aboutsummaryrefslogtreecommitdiffstats
path: root/community/libpostal/0001-fix-test_expansion_contains_phrase_option_with_languages.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/libpostal/0001-fix-test_expansion_contains_phrase_option_with_languages.patch')
-rw-r--r--community/libpostal/0001-fix-test_expansion_contains_phrase_option_with_languages.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/community/libpostal/0001-fix-test_expansion_contains_phrase_option_with_languages.patch b/community/libpostal/0001-fix-test_expansion_contains_phrase_option_with_languages.patch
new file mode 100644
index 0000000000..2929473d89
--- /dev/null
+++ b/community/libpostal/0001-fix-test_expansion_contains_phrase_option_with_languages.patch
@@ -0,0 +1,33 @@
+From 3b0576f635d8a081b168a6792e0b2f3be379c9ef Mon Sep 17 00:00:00 2001
+From: Nigel Horne <njh@bandsman.co.uk>
+Date: Wed, 28 Mar 2018 08:46:17 -0400
+Subject: [PATCH] Fix for https://github.com/openvenues/libpostal/issues/336
+
+---
+ test/test_expand.c | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/test/test_expand.c b/test/test_expand.c
+index 51da5a2e..4ba170af 100644
+--- a/test/test_expand.c
++++ b/test/test_expand.c
+@@ -102,7 +102,8 @@ static greatest_test_res test_expansion_contains_with_languages(char *input, cha
+ CHECK_CALL(test_expansion_contains_phrase_option_with_languages(input, output, options, root, num_languages, args));
+ va_end(args);
+ } else {
+- CHECK_CALL(test_expansion_contains_phrase_option_with_languages(input, output, options, root, num_languages, NULL));
++ va_list empty_va_list;
++ CHECK_CALL(test_expansion_contains_phrase_option_with_languages(input, output, options, root, num_languages, empty_va_list));
+ }
+ PASS();
+ }
+@@ -116,7 +117,8 @@ static greatest_test_res test_root_expansion_contains_with_languages(char *input
+ CHECK_CALL(test_expansion_contains_phrase_option_with_languages(input, output, options, root, num_languages, args));
+ va_end(args);
+ } else {
+- CHECK_CALL(test_expansion_contains_phrase_option_with_languages(input, output, options, root, num_languages, NULL));
++ va_list empty_va_list;
++ CHECK_CALL(test_expansion_contains_phrase_option_with_languages(input, output, options, root, num_languages, empty_va_list));
+ }
+ PASS();
+ }