diff --git a/src/backend/executor/nodeAgg.c b/src/backend/executor/nodeAgg.c
index bcc6bdebaf779cbf8b6316ad211da710f0aaa641..f069ee448d845ed33b7fac384fc6aeb915663311 100644
--- a/src/backend/executor/nodeAgg.c
+++ b/src/backend/executor/nodeAgg.c
@@ -256,10 +256,10 @@ ExecAgg(Agg *node)
 	for(i = 0; i < nagg; i++) {
 	    AttrNumber attnum;
 	    int2 attlen;
-	    Datum newVal;
+	    Datum newVal = NULL;
 	    AggFuncInfo *aggfns = &aggFuncInfo[i];
 	    Datum args[2];
-	    Node *tagnode;
+	    Node *tagnode = NULL;
 	    
 	    switch(nodeTag(aggregates[i]->target))
 	    {