version 1.40, 2019/07/10 19:39:01 |
version 1.41, 2020/02/10 14:42:10 |
Line 163 manconf_free(struct manconf *conf) |
|
Line 163 manconf_free(struct manconf *conf) |
|
static void |
static void |
manconf_file(struct manconf *conf, const char *file) |
manconf_file(struct manconf *conf, const char *file) |
{ |
{ |
const char *const toks[] = { "manpath", "output", "_whatdb" }; |
const char *const toks[] = { "manpath", "output" }; |
char manpath_default[] = MANPATH_DEFAULT; |
char manpath_default[] = MANPATH_DEFAULT; |
|
|
FILE *stream; |
FILE *stream; |
Line 200 manconf_file(struct manconf *conf, const char *file) |
|
Line 200 manconf_file(struct manconf *conf, const char *file) |
|
} |
} |
|
|
switch (tok) { |
switch (tok) { |
case 2: /* _whatdb */ |
|
while (ep > cp && ep[-1] != '/') |
|
ep--; |
|
if (ep == cp) |
|
continue; |
|
*ep = '\0'; |
|
/* FALLTHROUGH */ |
|
case 0: /* manpath */ |
case 0: /* manpath */ |
manpath_add(&conf->manpath, cp, '\0'); |
manpath_add(&conf->manpath, cp, '\0'); |
*manpath_default = '\0'; |
*manpath_default = '\0'; |