diff src/frame.c @ 105182:e77a0b956835

* 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
author Juanma Barranquero <lekktu@gmail.com>
date Thu, 24 Sep 2009 16:59:14 +0000
parents 5f7b67da2bbd
children c9f6575e6f19
line wrap: on
line diff
--- a/src/frame.c	Thu Sep 24 12:30:08 2009 +0000
+++ b/src/frame.c	Thu Sep 24 16:59:14 2009 +0000
@@ -3854,7 +3854,7 @@
 
   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;