tpm2_certify: fix "'type' may be used uninitialized" warning
tpm2_certify: fix "'type' may be used uninitialized" warning

get_key_type does not assign a value to 'type' on error conditions,
which makes the compiler believe that it will be used uninitialized in
the LOG_ERR call, in set_scheme. In practice this will never happen
because set_scheme returns immediately if get_key_type retuns false but
the compiler does not understand that logic and fails because warnings
are treated as errors.

Signed-off-by: Carlos Santos <2a7442c298acc4a91d7194decf545dfc1c52d086@datacom.ind.br>

01org/tpm2.0-tools,martinezjavier/tpm2-tools,martinezjavier/tpm2-tools,01org/tpm2.0-tools,martinezjavier/tpm2-tools,martinezjavier/tpm2-tools,01org/tpm2.0-tools