[clang-tidy] remove pointless string init

Found with readability-redundant-string-init

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-06-06 15:19:19 -07:00 committed by ridiculousfish
parent 67e5473a11
commit 9636d9f5d3

View File

@ -3778,7 +3778,7 @@ class history_tests_t {
}; };
static wcstring random_string() { static wcstring random_string() {
wcstring result = L""; wcstring result;
size_t max = 1 + random() % 32; size_t max = 1 + random() % 32;
while (max--) { while (max--) {
wchar_t c = 1 + random() % ESCAPE_TEST_CHAR; wchar_t c = 1 + random() % ESCAPE_TEST_CHAR;