diff mem.c @ 488:cb7f0f00760e libavutil

Merge declaration and initialization.
author michael
date Thu, 03 Apr 2008 19:18:14 +0000
parents 4472cc562ee9
children 638b436786fd
line wrap: on
line diff
--- a/mem.c	Sat Mar 22 18:15:12 2008 +0000
+++ b/mem.c	Thu Apr 03 19:18:14 2008 +0000
@@ -131,9 +131,7 @@
 
 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;