Commit f18c9bdb authored by bell@sanja.is.com.ua's avatar bell@sanja.is.com.ua

fixed initialization to satisfy valgrind

parent 06410f41
...@@ -284,7 +284,7 @@ class Item_sum_avg :public Item_sum_num ...@@ -284,7 +284,7 @@ class Item_sum_avg :public Item_sum_num
ulonglong count; ulonglong count;
public: public:
Item_sum_avg(Item *item_par) :Item_sum_num(item_par),count(0) {} Item_sum_avg(Item *item_par) :Item_sum_num(item_par), sum(0.0), count(0) {}
Item_sum_avg(THD *thd, Item_sum_avg *item) Item_sum_avg(THD *thd, Item_sum_avg *item)
:Item_sum_num(thd, item), sum(item->sum), count(item->count) {} :Item_sum_num(thd, item), sum(item->sum), count(item->count) {}
enum Sumfunctype sum_func () const {return AVG_FUNC;} enum Sumfunctype sum_func () const {return AVG_FUNC;}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment