mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-07-03 18:21:16 -03:00
builtin.cpp: ensure builtin_get_desc returns something initialized
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user