From e2292cc5c487fa8911e3360c20b7475fcc054fd6 Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 3 Aug 2013 21:45:40 +0200 Subject: [PATCH] inpcom.c, drop cp_tildexpand() in expand_this(), inp_pathresolve_at() shall do this --- src/frontend/inpcom.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 461bcece0..91f213467 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -2374,7 +2374,7 @@ expand_section_ref(struct line *c, char *dir_name) struct line *section_def; char keep_char1, keep_char2; - char *z, *copys = NULL; + char *z; struct library *lib; for (z = y; *z && !isspace(*z) && !isquote(*z); z++) @@ -2384,12 +2384,6 @@ expand_section_ref(struct line *c, char *dir_name) *t = '\0'; *z = '\0'; - if (*s == '~') { - copys = cp_tildexpand(s); - if (copys) - s = copys; - } - lib = read_a_lib(s, dir_name); if (!lib) { @@ -2404,11 +2398,6 @@ expand_section_ref(struct line *c, char *dir_name) controlled_exit(EXIT_FAILURE); } - if (copys) { - tfree(copys); /* allocated by the cp_tildexpand() above */ - s = NULL; - } - /* recursively expand the refered section itself */ { struct line *t = section_def;