aboutsummaryrefslogtreecommitdiffstats
path: root/src/frame.c
diff options
context:
space:
mode:
authorJuanma Barranquero2009-09-24 16:59:14 +0000
committerJuanma Barranquero2009-09-24 16:59:14 +0000
commitfeabfb6c7204ea224417589554a7f4b9a72a137d (patch)
tree24cfaeb1737941ec521872daf98a3dbf00faa837 /src/frame.c
parent9ccd2bb378b7a1df0d8cd4650a816e12f2fc3050 (diff)
downloademacs-feabfb6c7204ea224417589554a7f4b9a72a137d.tar.gz
emacs-feabfb6c7204ea224417589554a7f4b9a72a137d.zip
* 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
Diffstat (limited to 'src/frame.c')
-rw-r--r--src/frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/frame.c b/src/frame.c
index b18446d38b6..a74a0987453 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -3854,7 +3854,7 @@ xrdb_get_resource (rdb, attribute, class, component, subclass)
3854 3854
3855 value = x_get_string_resource (rdb, name_key, class_key); 3855 value = x_get_string_resource (rdb, name_key, class_key);
3856 3856
3857 if (value != (char *) 0) 3857 if (value != (char *) 0 && *value)
3858 return build_string (value); 3858 return build_string (value);
3859 else 3859 else
3860 return Qnil; 3860 return Qnil;