mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-19 03:02:45 +08:00
Fixed initialization of va_list variable in debug() in common.cpp, and mismatched new/free() in io.cpp
This commit is contained in:
parent
376e199ebb
commit
fd56465931
|
@ -668,8 +668,10 @@ void debug( int level, const wchar_t *msg, ... )
|
|||
|
||||
CHECK( msg, );
|
||||
|
||||
sb = format_string(L"%ls: ", program_name);
|
||||
sb.append(vformat_string(msg, va));
|
||||
sb = format_string(L"%ls: ", program_name);
|
||||
va_start(va, msg);
|
||||
sb.append(vformat_string(msg, va));
|
||||
va_end(va);
|
||||
|
||||
wcstring sb2;
|
||||
write_screen( sb, sb2 );
|
||||
|
|
Loading…
Reference in New Issue
Block a user