]> git.eshelyaron.com Git - emacs.git/commitdiff
* frame.c (xrdb_get_resource): Return nil for empty string resources;
authorJuanma Barranquero <lekktu@gmail.com>
Thu, 24 Sep 2009 16:59:14 +0000 (16:59 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Thu, 24 Sep 2009 16:59:14 +0000 (16:59 +0000)
  some parts of Emacs code (like font selection) don't grok them.  See
  http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html

src/ChangeLog
src/frame.c

index 5375574b2a2ff19f507d1fe583369b82ee4ec19a..66e0e7e034d7fc905a33592dfda603e5e2c630c4 100644 (file)
@@ -1,3 +1,9 @@
+2009-09-24  Juanma Barranquero  <lekktu@gmail.com>
+
+       * frame.c (xrdb_get_resource): Return nil for empty string resources;
+       some parts of Emacs code (like font selection) don't grok them.  See
+       http://lists.gnu.org/archive/html/emacs-devel/2009-09/msg00528.html
+
 2009-09-24  Andreas Schwab  <schwab@redhat.com>
 
        * coding.c (decode_coding_iso_2022): Fix operator precedence.
index b18446d38b623c3ca4d76fb1deb91ceacf4cef05..a74a09874537a4fced0be34eaf293d55db3b66f0 100644 (file)
@@ -3854,7 +3854,7 @@ xrdb_get_resource (rdb, attribute, class, component, subclass)
 
   value = x_get_string_resource (rdb, name_key, class_key);
 
-  if (value != (char *) 0)
+  if (value != (char *) 0 && *value)
     return build_string (value);
   else
     return Qnil;