Skip to content

Commit

Permalink
Merge "fix warning: Function call argument is an uninitialized value"
Browse files Browse the repository at this point in the history
am: 29d750d

Change-Id: Icdfb79e773e380fed625186dc0036cce6bbf1809
  • Loading branch information
Yunlian Jiang authored and android-build-merger committed Dec 1, 2016
2 parents 4bc2288 + 29d750d commit 8a72f61
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ojluni/src/main/native/PlainDatagramSocketImpl.c
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ PlainDatagramSocketImpl_peek(JNIEnv *env, jobject this,
}
if (IS_NULL(addressObj)) {
JNU_ThrowNullPointerException(env, "Null address in peek()");
return -1;
}
if (timeout) {
int ret = NET_Timeout(fd, timeout);
Expand Down Expand Up @@ -1386,7 +1387,7 @@ PlainDatagramSocketImpl_socketSetOption0(JNIEnv *env,
default :
JNU_ThrowByName(env, JNU_JAVANETPKG "SocketException",
"Socket option not supported by PlainDatagramSocketImp");
break;
return;

}

Expand Down Expand Up @@ -1608,6 +1609,9 @@ PlainDatagramSocketImpl_setTimeToLive(JNIEnv *env, jobject this,
#ifdef AF_INET6
#ifdef __linux__
setTTL(env, fd, ttl);
if ((*env)->ExceptionCheck(env)) {
return;
}
if (ipv6_available()) {
setHopLimit(env, fd, ttl);
}
Expand Down Expand Up @@ -1830,6 +1834,7 @@ static void mcast_join_leave(JNIEnv *env, jobject this,
else
NET_ThrowCurrent(env, "setsockopt IP_DROP_MEMBERSHIP failed");
}
return;
}
}

Expand Down

0 comments on commit 8a72f61

Please sign in to comment.