changeset 489:638b436786fd libavutil

Merge declaratio and initialization.
author michael
date Thu, 03 Apr 2008 19:20:32 +0000
parents cb7f0f00760e
children 4e4ba0186360
files mem.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mem.c	Thu Apr 03 19:18:14 2008 +0000
+++ b/mem.c	Thu Apr 03 19:20:32 2008 +0000
@@ -140,8 +140,7 @@
 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);