]> git.eshelyaron.com Git - emacs.git/commitdiff
* frame.c (x_get_arg): Check if dpyinfo is non-NULL.
authorChong Yidong <cyd@stupidchicken.com>
Sat, 27 Jun 2009 19:50:50 +0000 (19:50 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 27 Jun 2009 19:50:50 +0000 (19:50 +0000)
src/ChangeLog
src/frame.c

index 65cd4fa62b6b5fd572a528a710ec77134ef42ceb..d0130c73474d06dfd5107b00809ddecef2e35ff9 100644 (file)
@@ -1,5 +1,7 @@
 2009-06-27  Chong Yidong  <cyd@stupidchicken.com>
 
+       * frame.c (x_get_arg): Check if dpyinfo is non-NULL.
+
        * xdisp.c (mouse_face_from_buffer_pos): Fix detection of
        truncation glyphs (Bug#3686).
 
index 10713826b507d60816cd87ef6a23716946bf7ab9..9e05b1b8456c5dbeb21e7199398ae976e0213369 100644 (file)
@@ -4009,7 +4009,7 @@ x_get_arg (dpyinfo, alist, param, attribute, class, type)
      look in the X resources.  */
   if (EQ (tem, Qnil))
     {
-      if (attribute)
+      if (attribute && dpyinfo)
        {
          tem = display_x_get_resource (dpyinfo,
                                        build_string (attribute),