mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
(mc_build_filename): fixed incorrect processing of empty paths.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
b61e0fc6a9
commit
b63eea10cb
@ -1018,6 +1018,10 @@ mc_build_filename (const char *first_element, ...)
|
||||
va_start (args, first_element);
|
||||
|
||||
do
|
||||
{
|
||||
if (*element == '\0')
|
||||
element = va_arg (args, char *);
|
||||
else
|
||||
{
|
||||
char *tmp_element;
|
||||
size_t len;
|
||||
@ -1037,6 +1041,7 @@ mc_build_filename (const char *first_element, ...)
|
||||
|
||||
g_free (tmp_element);
|
||||
}
|
||||
}
|
||||
while (element != NULL);
|
||||
|
||||
va_end (args);
|
||||
|
Loading…
Reference in New Issue
Block a user