aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2007-06-23 00:47:27 +0000
committerMåns Rullgård <mans@mansr.com>2007-06-23 00:47:27 +0000
commit315a2858b6779c2a79bd49f8d1b6c4def412f749 (patch)
tree76eb93f90de4e2a03e1c3e6539b1338aa36701a4
parent26301cb80611652efbdbf80b77f9de73b488421d (diff)
downloadffmpeg-315a2858b6779c2a79bd49f8d1b6c4def412f749.tar.gz
cosmetic: combine declaration and initialisation
Originally committed as revision 9392 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/cutils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/cutils.c b/libavformat/cutils.c
index 55257a5a01..8580106717 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;