builtin.cpp: ensure builtin_get_desc returns something initialized

This commit is contained in:
Aaron Gyes 2019-03-14 21:45:31 -07:00
parent 9a5022514f
commit cb36a9ca36

View file

@ -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);