blob: 2bb2807707d0e02e6b0f101ea1d0141d49df98c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
From 931ad82c17984935decebacd3283e9d26ca749cb Mon Sep 17 00:00:00 2001
From: John Boehr <jbboehr@gmail.com>
Date: Tue, 25 Jul 2017 20:02:12 -0700
Subject: [PATCH] Should fix test failure on Alpine Linux ppc64le
#67
Patch-Source: https://github.com/jbboehr/handlebars.c/pull/68
---
tests/test_spec_handlebars_parser.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_spec_handlebars_parser.c b/tests/test_spec_handlebars_parser.c
index 6345e3a..7c6472d 100644
--- a/tests/test_spec_handlebars_parser.c
+++ b/tests/test_spec_handlebars_parser.c
@@ -160,7 +160,7 @@ static int loadSpec(const char * filename) {
// Allocate tests array
tests_size = array_len + 1;
- tests = handlebars_talloc_array(rootctx, struct parser_test, tests_size);
+ tests = talloc_zero_array(rootctx, struct parser_test, tests_size);
// Iterate over array
for( int i = 0; i < array_len; i++ ) {
|