Fully init allocated instructions.

This commit is contained in:
Michael Jumper 2013-10-02 11:42:08 -07:00
parent 0a09ed21fa
commit 1915b107ea

View File

@ -56,7 +56,10 @@ guac_instruction* guac_instruction_alloc() {
}
/* Initialize state */
instruction->opcode = NULL;
instruction->argc = 0;
instruction->state = GUAC_INSTRUCTION_PARSE_LENGTH;
instruction->__elementc = 0;
return instruction;