diff --git a/src/gallium/drivers/r600/sfn/sfn_instr_export.cpp b/src/gallium/drivers/r600/sfn/sfn_instr_export.cpp index 3d40ea1796a..00826ed6457 100644 --- a/src/gallium/drivers/r600/sfn/sfn_instr_export.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_instr_export.cpp @@ -206,7 +206,7 @@ bool WriteScratchInstr::do_ready() const void WriteScratchInstr::do_print(std::ostream& os) const { - char buf[6]; + char buf[6] = {0}; os << "WRITE_SCRATCH "; if (m_address)