mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
eCryptfs: initialize payload_len in keystore.c
This is meant to remove a compiler warning. It should not make any functional change. payload_len should be initialized when it is passed to write_tag_64_packet() as a pointer. If that call fails, this function should return early, and payload_len won't be used. Signed-off-by: Simon Que <[email protected]> Signed-off-by: Tyler Hicks <[email protected]>
This commit is contained in:
parent
dfdebc2483
commit
fa5199648e
1 changed files with 1 additions and 1 deletions
|
|
@ -1150,7 +1150,7 @@ decrypt_pki_encrypted_session_key(struct ecryptfs_auth_tok *auth_tok,
|
|||
struct ecryptfs_message *msg = NULL;
|
||||
char *auth_tok_sig;
|
||||
char *payload;
|
||||
size_t payload_len;
|
||||
size_t payload_len = 0;
|
||||
int rc;
|
||||
|
||||
rc = ecryptfs_get_auth_tok_sig(&auth_tok_sig, auth_tok);
|
||||
|
|
|
|||
Loading…
Reference in a new issue