diff options
author | oga <oga> | 2008-06-15 02:47:46 +0000 |
---|---|---|
committer | oga <oga> | 2008-06-15 02:47:46 +0000 |
commit | 07cd0b1ac55f819f42b2936339843bb85e7630bb (patch) | |
tree | 0e40db1dce753062bb6d979553e426b18cb71269 /parse.y | |
parent | 96d7310b4a224d50aeb2e5e94031d14b9bd6daf5 (diff) | |
download | cwm-07cd0b1ac55f819f42b2936339843bb85e7630bb.tar.gz cwm-07cd0b1ac55f819f42b2936339843bb85e7630bb.tar.xz cwm-07cd0b1ac55f819f42b2936339843bb85e7630bb.zip |
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.y | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/parse.y b/parse.y index 3181c6d..98903e4 100644 --- a/parse.y +++ b/parse.y @@ -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 { |