diff options
Diffstat (limited to 'src/fe-text/fe-text.c')
-rw-r--r-- | src/fe-text/fe-text.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/fe-text/fe-text.c b/src/fe-text/fe-text.c index 19749a65..c553d9f3 100644 --- a/src/fe-text/fe-text.c +++ b/src/fe-text/fe-text.c @@ -513,15 +513,17 @@ fe_args (int argc, char *argv[]) if (arg_show_config) { - printf ("%s\n", get_xdir_fs ()); + printf ("%s\n", get_xdir ()); return 0; } if (arg_cfgdir) /* we want filesystem encoding */ { - xdir_fs = strdup (arg_cfgdir); - if (xdir_fs[strlen (xdir_fs) - 1] == '/') - xdir_fs[strlen (xdir_fs) - 1] = 0; + if (xdir) + g_free (xdir); + xdir = strdup (arg_cfgdir); + if (xdir[strlen (xdir) - 1] == '/') + xdir[strlen (xdir) - 1] = 0; g_free (arg_cfgdir); } |