Fix parsing of per-user configuration files.
The mu_cfg_parse_file function ignored special meaning of the initial "~/" in file names. This led to user configuration files not being read (mu_libcfg_parse_config creates such names if mu_load_user_rcfile is set). * mailbox/cfg_lexer.l (mu_cfg_parse_file): Expand initial tilde in the file name. Store expanded file name in the opool. (mu_get_config): Destroy tree only if it has actually been created. * mailbox/cfg_parser.y (mu_cfg_parse): Free allocated memory in case of error. (do_include): Fix memory leak.
Showing
2 changed files
with
42 additions
and
23 deletions
-
Please register or sign in to post a comment