Fixed uninitialized memory in "runningDifference" function [#CLICKHOUSE-2]

This commit is contained in:
Alexey Milovidov 2018-12-29 03:53:11 +03:00
parent e5729c58b1
commit cd6a1c9bc9

View File

@ -59,7 +59,10 @@ private:
for (size_t i = 0; i < size; ++i) for (size_t i = 0; i < size; ++i)
{ {
if (null_map && (*null_map)[i]) if (null_map && (*null_map)[i])
{
dst[i] = Dst{};
continue; continue;
}
if (!has_prev_value) if (!has_prev_value)
{ {