mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-24 22:21:15 -03:00
Fixed initialization of va_list variable in debug() in common.cpp, and mismatched new/free() in io.cpp
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user