]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix potential NULL pointer dereference
authorPo Lu <luangruo@yahoo.com>
Thu, 17 Aug 2023 00:25:40 +0000 (08:25 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 17 Aug 2023 00:25:40 +0000 (08:25 +0800)
* java/org/gnu/emacs/EmacsDialog.java (display): Initialize
rc.thing to false.

java/org/gnu/emacs/EmacsDialog.java

index e4ed2271741d61d788f7230a576eeb1b70b3afae..2291207fbccbe6448a965b582f0a9b462c517aca 100644 (file)
@@ -394,6 +394,7 @@ public final class EmacsDialog implements DialogInterface.OnDismissListener
     final EmacsHolder<Boolean> rc;
 
     rc = new EmacsHolder<Boolean> ();
+    rc.thing = false;
     runnable = new Runnable () {
        @Override
        public void