[FFmpeg-cvslog] r9392 - trunk/libavformat/cutils.c

mru subversion
Sat Jun 23 02:47:27 CEST 2007


Author: mru
Date: Sat Jun 23 02:47:27 2007
New Revision: 9392

Log:
cosmetic: combine declaration and initialisation


Modified:
   trunk/libavformat/cutils.c

Modified: trunk/libavformat/cutils.c
==============================================================================
--- trunk/libavformat/cutils.c	(original)
+++ trunk/libavformat/cutils.c	Sat Jun 23 02:47:27 2007
@@ -86,8 +86,7 @@ void pstrcpy(char *buf, int buf_size, co
 /* 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;




More information about the ffmpeg-cvslog mailing list