OSDN Git Service

Merge declaratio and initialization.
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 3 Apr 2008 19:20:32 +0000 (19:20 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 3 Apr 2008 19:20:32 +0000 (19:20 +0000)
Originally committed as revision 12677 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavutil/mem.c

index 4e654b0..8062ae8 100644 (file)
@@ -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);