Remove unnecessary "memset".

The whole memory block is filled with "memcpy" afterwards.

Bug: None
Change-Id: Ieb7fe2513184a6abbf6c61f3582590f4bcd16f1f
Reviewed-on: https://webrtc-review.googlesource.com/35980
Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org>
Commit-Queue: Joachim Bauch <jbauch@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#21420}
This commit is contained in:
Joachim Bauch
2017-12-22 00:22:39 +01:00
committed by Commit Bot
parent b1c1de17d4
commit ad596a487f

View File

@ -111,7 +111,6 @@ srtp_err_status_t external_hmac_init(void* state,
return srtp_err_status_bad_param;
ExternalHmacContext* context = static_cast<ExternalHmacContext*>(state);
memset(context->key, 0, key_len);
memcpy(context->key, key, key_len);
context->key_length = key_len;
return srtp_err_status_ok;