From fdbbe9f69dc1558edb80597763ea58e73598cd27 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sat, 16 Feb 2019 16:39:36 +0100 Subject: [PATCH] fish_tests: Initialize some collections For some reason this'd crash on NetBSD otherwise. --- src/fish_tests.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fish_tests.cpp b/src/fish_tests.cpp index 19172dff3..7b1f5c6c3 100644 --- a/src/fish_tests.cpp +++ b/src/fish_tests.cpp @@ -442,7 +442,7 @@ static char *str2hex(const char *input) { /// comes back through double conversion. static void test_convert() { int i; - std::vector sb; + std::vector sb {}; say(L"Testing wide/narrow string conversion"); @@ -3300,7 +3300,7 @@ class history_tests_t { }; static wcstring random_string() { - wcstring result; + wcstring result = L""; size_t max = 1 + rand() % 32; while (max--) { wchar_t c = 1 + rand() % ESCAPE_TEST_CHAR;