From b7e025e3819577efb92604fba71e04092c946f72 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 1 Jun 2018 18:27:30 +0200 Subject: libwg-go: fix style Signed-off-by: Jason A. Donenfeld --- app/tools/libwg-go/src/git.zx2c4.com/wireguard-go/jni.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/tools/libwg-go') diff --git a/app/tools/libwg-go/src/git.zx2c4.com/wireguard-go/jni.c b/app/tools/libwg-go/src/git.zx2c4.com/wireguard-go/jni.c index acb2d728..7cfadcd2 100644 --- a/app/tools/libwg-go/src/git.zx2c4.com/wireguard-go/jni.c +++ b/app/tools/libwg-go/src/git.zx2c4.com/wireguard-go/jni.c @@ -49,11 +49,11 @@ JNIEXPORT jint JNICALL Java_com_wireguard_android_backend_GoBackend_wgGetSocketV JNIEXPORT jstring JNICALL Java_com_wireguard_android_backend_GoBackend_wgVersion(JNIEnv *env, jclass c) { + jstring ret; struct go_string s = wgVersion(); char *cstr = malloc(s.n + 1); if (!cstr) return NULL; - jstring ret; memcpy(cstr, s.str, s.n); cstr[s.n] = '\0'; ret = (*env)->NewStringUTF(env, cstr); -- cgit v1.2.3