From 11362767b80161603e4f366a8cefba78c5b8d102 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 3 Apr 2008 19:18:14 +0000 Subject: [PATCH] Merge declaration and initialization. Originally committed as revision 12676 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/mem.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libavutil/mem.c b/libavutil/mem.c index 033fcd5fe7..4e654b044c 100644 --- a/libavutil/mem.c +++ b/libavutil/mem.c @@ -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;