Commit 99b373ff authored by Tyler Hicks's avatar Tyler Hicks

eCryptfs: Fix payload_len unitialized variable warning

fs/ecryptfs/keystore.c: In function ‘ecryptfs_generate_key_packet_set’:
fs/ecryptfs/keystore.c:1991:28: warning: ‘payload_len’ may be used uninitialized in this function [-Wuninitialized]
fs/ecryptfs/keystore.c:1976:9: note: ‘payload_len’ was declared here
Signed-off-by: default avatarTyler Hicks <tyhicks@linux.vnet.ibm.com>
parent 4b6fee17
...@@ -1973,7 +1973,7 @@ pki_encrypt_session_key(struct key *auth_tok_key, ...@@ -1973,7 +1973,7 @@ pki_encrypt_session_key(struct key *auth_tok_key,
{ {
struct ecryptfs_msg_ctx *msg_ctx = NULL; struct ecryptfs_msg_ctx *msg_ctx = NULL;
char *payload = NULL; char *payload = NULL;
size_t payload_len; size_t payload_len = 0;
struct ecryptfs_message *msg; struct ecryptfs_message *msg;
int rc; int rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment