changeset 7078:ba4d4aed36c0

. Use CHECK_NULL_RETURN with a return value of 0 rather than CHECK_NULL which does an empty return statement since this function is declared to return an int. Submitted by: jkim@FreeBSD.org
author Greg Lewis <glewis@eyesbeyond.com>
date Sun, 20 Apr 2014 12:37:04 -0700
parents a2a260c65596
children 657699a11b08
files src/solaris/native/java/net/net_util_md.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/java/net/net_util_md.c	Sun Apr 20 12:35:53 2014 -0700
+++ b/src/solaris/native/java/net/net_util_md.c	Sun Apr 20 12:37:04 2014 -0700
@@ -118,9 +118,9 @@
     static jfieldID ni_defaultIndexID;
     if (ni_class == NULL) {
         jclass c = (*env)->FindClass(env, "java/net/NetworkInterface");
-        CHECK_NULL(c);
+        CHECK_NULL_RETURN(c, 0);
         c = (*env)->NewGlobalRef(env, c);
-        CHECK_NULL(c);
+        CHECK_NULL_RETURN(c, 0);
         ni_defaultIndexID = (*env)->GetStaticFieldID(
             env, c, "defaultIndex", "I");
         ni_class = c;