From f18c9bdbd6421d7250377823b116f2fa04e9600b Mon Sep 17 00:00:00 2001 From: "bell@sanja.is.com.ua" <> Date: Sun, 15 Feb 2004 19:46:23 +0200 Subject: [PATCH] fixed initialization to satisfy valgrind --- sql/item_sum.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/item_sum.h b/sql/item_sum.h index 41a77f2ac93..0848886d6d8 100644 --- a/sql/item_sum.h +++ b/sql/item_sum.h @@ -284,7 +284,7 @@ class Item_sum_avg :public Item_sum_num ulonglong count; 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_num(thd, item), sum(item->sum), count(item->count) {} enum Sumfunctype sum_func () const {return AVG_FUNC;}