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

michael subversion
Thu Apr 3 21:18:16 CEST 2008


Author: michael
Date: Thu Apr  3 21:18:14 2008
New Revision: 12676

Log:
Merge declaration 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:18:14 2008
@@ -131,9 +131,7 @@ void av_freep(void *arg)
 
 void *av_mallocz(unsigned int size)
 {
-    void *ptr;
-
-    ptr = av_malloc(size);
+    void *ptr = av_malloc(size);
     if (ptr)
         memset(ptr, 0, size);
     return ptr;




More information about the ffmpeg-cvslog mailing list