Fix Bug#6001.
* xsettings.c (read_and_apply_settings): Check if current_font is NULL before strcmp (Bug#6001).
This commit is contained in:
parent
4e7f249cba
commit
a0d0b56337
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-04-22 Jan Djärv <jan.h.d@swipnet.se>
|
||||
|
||||
* xsettings.c (read_and_apply_settings): Check if current_font is
|
||||
NULL before strcmp (Bug#6001).
|
||||
|
||||
2010-04-21 Dan Nicolaescu <dann@ics.uci.edu>
|
||||
|
||||
Clean up HP-UX files.
|
||||
|
|
|
@ -578,7 +578,7 @@ read_and_apply_settings (dpyinfo, send_event_p)
|
|||
|
||||
if (settings.seen & SEEN_FONT)
|
||||
{
|
||||
if (strcmp (current_font, settings.font) != 0)
|
||||
if (!current_font || strcmp (current_font, settings.font) != 0)
|
||||
{
|
||||
free (current_font);
|
||||
current_font = settings.font;
|
||||
|
|
Loading…
Add table
Reference in a new issue