Browse Source

inpcom.c, drop cp_tildexpand() in expand_this(), inp_pathresolve_at() shall do this

pre-master-46
rlar 13 years ago
parent
commit
e2292cc5c4
  1. 13
      src/frontend/inpcom.c

13
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;

Loading…
Cancel
Save