diff --git a/hipamd/src/hip_graph_internal.hpp b/hipamd/src/hip_graph_internal.hpp index 07040d8f8c..39319cfe91 100644 --- a/hipamd/src/hip_graph_internal.hpp +++ b/hipamd/src/hip_graph_internal.hpp @@ -859,7 +859,7 @@ class hipGraphEventRecordNode : public hipGraphNode { } hip::Event* e = reinterpret_cast(event_); commands_.reserve(1); - amd::Command* command; + amd::Command* command = nullptr; status = e->recordCommand(command, queue); commands_.emplace_back(command); return status;