From: Tyler Hicks Date: Fri, 5 Aug 2011 09:15:19 +0000 (-0500) Subject: eCryptfs: Fix payload_len unitialized variable warning X-Git-Tag: MMI-PSA29.97-13-9~18599^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=99b373ff2d1246f64b97a3d449a2fd6018d504e6;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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: Tyler Hicks --- diff --git a/fs/ecryptfs/keystore.c b/fs/ecryptfs/keystore.c index 08a2b52bf565..ac1ad48c2376 100644 --- a/fs/ecryptfs/keystore.c +++ b/fs/ecryptfs/keystore.c @@ -1973,7 +1973,7 @@ pki_encrypt_session_key(struct key *auth_tok_key, { struct ecryptfs_msg_ctx *msg_ctx = NULL; char *payload = NULL; - size_t payload_len; + size_t payload_len = 0; struct ecryptfs_message *msg; int rc;