]> git.eshelyaron.com Git - emacs.git/commit
Avoid unlikely int overflow.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 27 Jan 2025 06:15:49 +0000 (22:15 -0800)
committerEshel Yaron <me@eshelyaron.com>
Thu, 30 Jan 2025 18:06:45 +0000 (19:06 +0100)
commit98e00ccb58796c284a1e6268b75630f644013719
treeb9477b0178fc63ce1d6f45e99a95c4ebe1dcbed1
parent9e3150d3bead358b17c89eca667e8e39f1b8452f
Avoid unlikely int overflow.

* src/pgtkterm.c (pgtk_term_init):
* src/xterm.c (x_term_init):
Use a bool, not an int that keeps incrementing,
to record whether initialization has occurred.

(cherry picked from commit a1e4f6a35c70cf265c77b445288f4e0ab6ffc19f)
src/pgtkterm.c
src/xterm.c