diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-06-01 18:27:30 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-06-01 18:27:30 +0200 |
commit | b7e025e3819577efb92604fba71e04092c946f72 (patch) | |
tree | 8f8a357118778f31f89de22271951bd682c815d9 /app | |
parent | 858ec4c0abf1b96197268728fe87ad400bac6591 (diff) |
libwg-go: fix style
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'app')
-rw-r--r-- | app/tools/libwg-go/src/git.zx2c4.com/wireguard-go/jni.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |