mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
(expand_format): remove intermediate variable.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
daaea80895
commit
44b5accbf7
@ -823,16 +823,13 @@ expand_format (const Widget * edit_widget, char c, gboolean do_quote)
|
||||
case 'd':
|
||||
{
|
||||
const char *cwd;
|
||||
char *qstr;
|
||||
|
||||
if (panel != NULL)
|
||||
cwd = vfs_path_as_str (panel->cwd_vpath);
|
||||
else
|
||||
cwd = vfs_get_current_dir ();
|
||||
|
||||
qstr = quote_func (cwd, FALSE);
|
||||
|
||||
result = qstr;
|
||||
result = quote_func (cwd, FALSE);
|
||||
goto ret;
|
||||
}
|
||||
case 'c':
|
||||
|
Loading…
Reference in New Issue
Block a user