Skip to content

Commit

Permalink
Fixed uninitialized memory in "runningDifference" function [#CLICKHOU…
Browse files Browse the repository at this point in the history
…SE-2]
  • Loading branch information
alexey-milovidov committed Dec 29, 2018
1 parent e5729c5 commit cd6a1c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dbms/src/Functions/runningDifference.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ class FunctionRunningDifferenceImpl : public IFunction
for (size_t i = 0; i < size; ++i)
{
if (null_map && (*null_map)[i])
{
dst[i] = Dst{};
continue;
}

if (!has_prev_value)
{
Expand Down

0 comments on commit cd6a1c9

Please sign in to comment.