This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 97d06c9  Fixed C99 variable initialization in cgo header (#2029)
97d06c9 is described below

commit 97d06c91b7b93b936e77bd009e19576011ea1b46
Author: Matteo Merli <[email protected]>
AuthorDate: Tue Jun 26 11:14:02 2018 -0700

    Fixed C99 variable initialization in cgo header (#2029)
---
 pulsar-client-go/pulsar/c_go_pulsar.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pulsar-client-go/pulsar/c_go_pulsar.h 
b/pulsar-client-go/pulsar/c_go_pulsar.h
index 11b976e..045a4a2 100644
--- a/pulsar-client-go/pulsar/c_go_pulsar.h
+++ b/pulsar-client-go/pulsar/c_go_pulsar.h
@@ -129,7 +129,8 @@ static void setString(char** array, char *str, int n) {
 }
 
 static void freeStringArray(char* *array, int size) {
-    for (int i = 0; i < size; i++) {
+    int i;
+    for (i = 0; i < size; i++) {
         free(array[i]);
     }
 

Reply via email to