From 228b43bc953c60fd4b04ebe6160e99020b749b8b Mon Sep 17 00:00:00 2001 From: artpaul Date: Sat, 10 Dec 2016 00:33:52 +0500 Subject: [PATCH] calculate size of 'https' at compile time --- dbms/include/DB/Functions/FunctionsURL.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/include/DB/Functions/FunctionsURL.h b/dbms/include/DB/Functions/FunctionsURL.h index 0545fdc57ff..9f1dbca4244 100644 --- a/dbms/include/DB/Functions/FunctionsURL.h +++ b/dbms/include/DB/Functions/FunctionsURL.h @@ -60,7 +60,7 @@ using Pos = const char *; struct ExtractProtocol { - static size_t getReserveLengthForElement() { return strlen("https") + 1; } + static size_t getReserveLengthForElement() { return MakeStringView("https").size() + 1; } static void execute(Pos data, size_t size, Pos & res_data, size_t & res_size) {