aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authoroga2008-06-15 02:47:46 +0000
committeroga2008-06-15 02:47:46 +0000
commit95f0da676903ac1975beaa3567cb8c5ba28660e5 (patch)
tree9b5c8fbd2442ccbde0b95a852321b9a5b5ee93f7 /parse.y
parent436f35e0eec7bc1d4cebee440858aad0e2f5e123 (diff)
downloadcwm-95f0da676903ac1975beaa3567cb8c5ba28660e5.tar.gz
Rip out and burn the HASH_* stuff. We don't need a SPLAY tree for one font.
makes the code a lot simpler. While here rearrange the font handling functions to be less shit. ok and help okan@.
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y8
1 files changed, 2 insertions, 6 deletions
diff --git a/parse.y b/parse.y
index e344e11..c67ddbe 100644
--- a/parse.y
+++ b/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.11 2008/06/14 21:51:00 okan Exp $ */
+/* $OpenBSD: parse.y,v 1.12 2008/06/15 02:47:46 oga Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -103,11 +103,7 @@ main : FONTNAME STRING {
if (conf->DefaultFontName != NULL &&
conf->DefaultFontName != DEFAULTFONTNAME)
free(conf->DefaultFontName);
- if ((conf->DefaultFontName = xstrdup($2)) == NULL) {
- free($2);
- yyerror("string: asprintf");
- YYERROR;
- }
+ conf->DefaultFontName = xstrdup($2);
free($2);
}
| STICKY yesno {