mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
builtin.cpp: ensure builtin_get_desc returns something initialized
This commit is contained in:
parent
9a5022514f
commit
cb36a9ca36
1 changed files with 1 additions and 1 deletions
|
@ -546,7 +546,7 @@ void builtin_get_names(std::vector<completion_t> *list) {
|
|||
|
||||
/// Return a one-line description of the specified builtin.
|
||||
const wchar_t *builtin_get_desc(const wcstring &name) {
|
||||
const wchar_t *result;
|
||||
const wchar_t *result = L"";
|
||||
const builtin_data_t *builtin = builtin_lookup(name);
|
||||
if (builtin) {
|
||||
result = _(builtin->desc);
|
||||
|
|
Loading…
Reference in a new issue