Ticket #3096: 3096.diff

File 3096.diff, 981 bytes (added by andrew_b, 11 years ago)
  • src/filemanager/cmd.c

    diff --git a/src/filemanager/cmd.c b/src/filemanager/cmd.c
    index 29e66a0..00e7c25 100644
    a b void 
    17021702save_setup_cmd (void) 
    17031703{ 
    17041704    vfs_path_t *vpath; 
    1705     char *path; 
    17061705 
    1707     vpath = mc_config_get_full_vpath (MC_CONFIG_FILE); 
    1708     path = vfs_path_to_str_flags (vpath, 0, VPF_STRIP_HOME); 
    1709     vfs_path_free (vpath); 
     1706    vpath = vfs_path_from_str_flags (mc_config_get_path (), VPF_STRIP_HOME); 
    17101707 
    17111708    if (save_setup (TRUE, TRUE)) 
    1712         message (D_NORMAL, _("Setup"), _("Setup saved to %s"), path); 
     1709        message (D_NORMAL, _("Setup"), _("Setup saved to %s"), vpath->str); 
    17131710    else 
    1714         message (D_ERROR, _("Setup"), _("Unable to save setup to %s"), path); 
    1715     g_free (path); 
     1711        message (D_ERROR, _("Setup"), _("Unable to save setup to %s"), vpath->str); 
     1712 
     1713    vfs_path_free (vpath); 
    17161714} 
    17171715 
    17181716/* --------------------------------------------------------------------------------------------- */