8155772: gtk3_interface.c compilation error on Ubuntu 12.10
authorprr
Fri, 29 Apr 2016 16:37:02 -0700
changeset 38394 2adb3640d70d
parent 38393 2e49e69f3d64
child 38395 acdc10ebac11
8155772: gtk3_interface.c compilation error on Ubuntu 12.10 Reviewed-by: serb, kcr
jdk/src/java.desktop/unix/native/libawt_xawt/awt/gtk3_interface.c
--- a/jdk/src/java.desktop/unix/native/libawt_xawt/awt/gtk3_interface.c	Fri Apr 29 14:50:50 2016 -0700
+++ b/jdk/src/java.desktop/unix/native/libawt_xawt/awt/gtk3_interface.c	Fri Apr 29 16:37:02 2016 -0700
@@ -2547,14 +2547,14 @@
 
 static jobject get_integer_property(JNIEnv *env, GtkSettings* settings,
                                                              const gchar* key) {
-    gint intval = NULL;
+    gint intval = 0;
     (*fp_g_object_get)(settings, key, &intval, NULL);
     return create_Integer(env, intval);
 }
 
 static jobject get_boolean_property(JNIEnv *env, GtkSettings* settings,
                                                              const gchar* key) {
-    gint intval = NULL;
+    gint intval = 0;
     (*fp_g_object_get)(settings, key, &intval, NULL);
     return create_Boolean(env, intval);
 }