[SCM] libav/experimental: cosmetic: combine declaration and initialisation

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:02:31 UTC 2013


The following commit has been merged in the experimental branch:
commit 315a2858b6779c2a79bd49f8d1b6c4def412f749
Author: Måns Rullgård <mans at mansr.com>
Date:   Sat Jun 23 00:47:27 2007 +0000

    cosmetic: combine declaration and initialisation
    
    Originally committed as revision 9392 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/cutils.c b/libavformat/cutils.c
index 55257a5..8580106 100644
--- a/libavformat/cutils.c
+++ b/libavformat/cutils.c
@@ -86,8 +86,7 @@ void pstrcpy(char *buf, int buf_size, const char *str)
 /* strcat and truncate. */
 char *pstrcat(char *buf, int buf_size, const char *s)
 {
-    int len;
-    len = strlen(buf);
+    int len = strlen(buf);
     if (len < buf_size)
         pstrcpy(buf + len, buf_size - len, s);
     return buf;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list