[FFmpeg-cvslog] r12677 - trunk/libavutil/mem.c

michael subversion
Thu Apr 3 21:20:32 CEST 2008


Author: michael
Date: Thu Apr  3 21:20:32 2008
New Revision: 12677

Log:
Merge declaratio and initialization.


Modified:
   trunk/libavutil/mem.c

Modified: trunk/libavutil/mem.c
==============================================================================
--- trunk/libavutil/mem.c	(original)
+++ trunk/libavutil/mem.c	Thu Apr  3 21:20:32 2008
@@ -140,8 +140,7 @@ void *av_mallocz(unsigned int size)
 char *av_strdup(const char *s)
 {
     char *ptr;
-    int len;
-    len = strlen(s) + 1;
+    int len = strlen(s) + 1;
     ptr = av_malloc(len);
     if (ptr)
         memcpy(ptr, s, len);




More information about the ffmpeg-cvslog mailing list