From cb36a9ca3639ae6ddabc7a2d2cd3dbbab0c1e8de Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Thu, 14 Mar 2019 21:45:31 -0700 Subject: [PATCH] builtin.cpp: ensure builtin_get_desc returns something initialized --- src/builtin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtin.cpp b/src/builtin.cpp index f7103a0bf..802f95bc5 100644 --- a/src/builtin.cpp +++ b/src/builtin.cpp @@ -546,7 +546,7 @@ void builtin_get_names(std::vector *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);