[FFmpeg-soc] [soc]: r4753 - rtmp/rtmpproto.c

kostya subversion at mplayerhq.hu
Wed Jul 22 07:56:50 CEST 2009


Author: kostya
Date: Wed Jul 22 07:56:50 2009
New Revision: 4753

Log:
Declare array to be zero instead of zeroing it later

Modified:
   rtmp/rtmpproto.c

Modified: rtmp/rtmpproto.c
==============================================================================
--- rtmp/rtmpproto.c	Wed Jul 22 07:54:45 2009	(r4752)
+++ rtmp/rtmpproto.c	Wed Jul 22 07:56:50 2009	(r4753)
@@ -211,12 +211,11 @@ static void rtmp_calc_digest(const uint8
                              const uint8_t *key, int keylen, uint8_t *dst)
 {
     struct AVSHA *sha;
-    uint8_t hmac_buf[64+32];
+    uint8_t hmac_buf[64+32] = {0};
     int i;
 
     sha = av_mallocz(av_sha_size);
 
-    memset(hmac_buf, 0, 64);
     if (keylen < 64) {
         memcpy(hmac_buf, key, keylen);
     } else {


More information about the FFmpeg-soc mailing list