mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-29 10:31:14 -03:00
Fix a compiler warning in builtin_printf
This commit is contained in:
@@ -714,8 +714,13 @@ int builtin_printf_state_t::print_formatted(const wchar_t *format, int argc, wch
|
||||
return 0;
|
||||
}
|
||||
|
||||
const wchar_t *argument = L"";
|
||||
if (argc > 0) {
|
||||
argument = *argv++;
|
||||
argc--;
|
||||
}
|
||||
print_direc(direc_start, direc_length, *f, have_field_width, field_width,
|
||||
have_precision, precision, (argc <= 0 ? L"" : (argc--, *argv++)));
|
||||
have_precision, precision, argument);
|
||||
break;
|
||||
}
|
||||
case L'\\': {
|
||||
|
||||
Reference in New Issue
Block a user