[ktp-auth-handler] Fixed uninitialized variable usage

Review Request #129016 - Created Sept. 25, 2016 and submitted

Information
Alexandr Akulich
ktp-auth-handler
master
Reviewers
telepathy
apol

If there is no account (condition at 175 is false), then SignOn::Identity *identity will be used without initialization at line 210.

Bug reported by the clang static analyzer.

Thanks to Aleix Pol Gonzalez for the idea to run the analyzer. :)

Compiles

Aleix Pol Gonzalez
David Huffman
Alexandr Akulich
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 03508d05afe02c17ed7066d78d6f42283c2e14e5 by Alexandr Akulich to branch master.
Loading...