Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 26, 2018
Merged

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

merged 1 commit into from
Mar 26, 2018

Commits on Mar 25, 2018

  1. 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 <casantos@datacom.ind.br>
    Carlos Santos committed Mar 25, 2018
    Configuration menu
    Copy the full SHA
    e012583 View commit details
    Browse the repository at this point in the history