mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
Fix a compiler warning in builtin_printf
This commit is contained in:
parent
54b642bc6f
commit
7d2d2c97b2
1 changed files with 6 additions and 1 deletions
|
@ -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'\\': {
|
||||
|
|
Loading…
Reference in a new issue