]> git.eshelyaron.com Git - emacs.git/commit
Don't crash if we can't find a monitor model name
authorRobert Pluim <rpluim@gmail.com>
Thu, 11 Feb 2021 15:53:13 +0000 (16:53 +0100)
committerRobert Pluim <rpluim@gmail.com>
Thu, 11 Feb 2021 16:00:03 +0000 (17:00 +0100)
commit175ebb010477ff0e174fe5145154397f43dee2d2
tree4c6fb9aee070622642bac451b90b8fa8aa6fae0e
parentef76e64427bb980cca23c338df2526766431ea52
Don't crash if we can't find a monitor model name

This can happen when running emacs over a forwarded X11 connection.

* src/pgtkfns.c (pgtk_get_monitor_scale_factor): Return 0 if we're
passed a NULL model name.
src/pgtkfns.c