From 5ae31138d382c82e5bea616091937d4660457208 Mon Sep 17 00:00:00 2001 From: "kyle.cao" Date: Mon, 11 Oct 2021 11:59:17 +0800 Subject: [PATCH] Fix initialization of pointer member (#3027) --- src/graph/visitor/DeduceTypeVisitor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graph/visitor/DeduceTypeVisitor.h b/src/graph/visitor/DeduceTypeVisitor.h index a129873206a..302261f18cb 100644 --- a/src/graph/visitor/DeduceTypeVisitor.h +++ b/src/graph/visitor/DeduceTypeVisitor.h @@ -93,8 +93,8 @@ class DeduceTypeVisitor final : public ExprVisitor { return type == Value::Type::NULLVALUE || type == Value::Type::__EMPTY__; } - const QueryContext *qctx_; - const ValidateContext *vctx_; + const QueryContext *qctx_{nullptr}; + const ValidateContext *vctx_{nullptr}; const ColsDef &inputs_; GraphSpaceID space_; Status status_;