Make sure instructions are zero'd out before use.

This commit is contained in:
Keith Whitwell 2006-10-13 11:20:25 +00:00
parent e595ce79d6
commit fd6341e574

View file

@ -535,6 +535,7 @@ static void emit_op3fn(struct tnl_program *p,
{
struct prog_instruction *inst = &p->program->Base.Instructions[nr];
memset(inst, 0, sizeof(*inst));
inst->Opcode = op;
inst->StringPos = 0;
inst->Data = 0;