[SCM] libav/experimental: anothe useless sizeof(char)

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:48:28 UTC 2013


The following commit has been merged in the experimental branch:
commit f2508b1712b82827e69032fc5e53c4458a4f5ccd
Author: Reynaldo H. Verdejo Pinochet <reynaldo at opendot.cl>
Date:   Fri Jun 30 05:53:28 2006 +0000

    anothe useless sizeof(char)
    
    Originally committed as revision 5555 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 830c4fa..7aca549 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -1369,7 +1369,7 @@ int av_tempfile(char *prefix, char **filename) {
     *filename = tempnam(".", prefix);
 #else
     size_t len = strlen(prefix) + 12; /* room for "/tmp/" and "XXXXXX\0" */
-    *filename = av_malloc(len * sizeof(char));
+    *filename = av_malloc(len);
 #endif
     /* -----common section-----*/
     if (*filename == NULL) {

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list