mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-27 16:51:15 -03:00
Eliminate str2wcs
This commit is contained in:
@@ -188,12 +188,11 @@ static void builtin_wperror(const wchar_t *s)
|
||||
stderr_buffer.append(L": ");
|
||||
}
|
||||
char *err = strerror(errno);
|
||||
wchar_t *werr = str2wcs(err);
|
||||
if (werr)
|
||||
if (err)
|
||||
{
|
||||
const wcstring werr = str2wcstring(err);
|
||||
stderr_buffer.append(werr);
|
||||
stderr_buffer.push_back(L'\n');
|
||||
free(werr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3065,7 +3064,7 @@ static int builtin_source(parser_t &parser, wchar_t ** argv)
|
||||
return STATUS_BUILTIN_ERROR;
|
||||
}
|
||||
|
||||
fn = wrealpath(argv[1], 0);
|
||||
fn = wrealpath(argv[1], NULL);
|
||||
|
||||
if (!fn)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user