]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Bug#6001.
authorJan Djärv <jan.h.d@swipnet.se>
Thu, 22 Apr 2010 17:23:18 +0000 (19:23 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Thu, 22 Apr 2010 17:23:18 +0000 (19:23 +0200)
* xsettings.c (read_and_apply_settings): Check if current_font is
  NULL before strcmp (Bug#6001).

src/ChangeLog
src/xsettings.c

index c0b17d0d86756a4318621a566a8985663f597eb3..6588549e496d418e08cb669b99ba664b08fb4bef 100644 (file)
@@ -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.
index 2dd7f70eb60ffa135d178bc07687b30f5acb2696..4d128f19dd206e5e59af5ef36bb5d65b4a811d11 100644 (file)
@@ -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;