]> git.eshelyaron.com Git - emacs.git/commitdiff
Pacify compiler warning in handle_one_xevent
authorPo Lu <luangruo@yahoo.com>
Wed, 16 Mar 2022 11:43:06 +0000 (19:43 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 16 Mar 2022 11:43:06 +0000 (19:43 +0800)
* src/xterm.c (x_dnd_get_target_window): Set proto_out even if
it won't be used because target is None.  Reported by Lars
Ingebrigtsen <larsi@gnus.org>.

src/xterm.c

index 7d1a5f4043ffef1af184a87fcb20f86a30463b00..46a22d8dc1bba60bda4a8211d73dd243c2f8a164 100644 (file)
@@ -866,6 +866,7 @@ x_dnd_get_target_window (struct x_display_info *dpyinfo,
          if (x_had_errors_p (dpyinfo->display) || !rc)
            {
              x_uncatch_errors_after_check ();
+             *proto_out = -1;
              return None;
            }
        }