From 315a2858b6779c2a79bd49f8d1b6c4def412f749 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Sat, 23 Jun 2007 00:47:27 +0000 Subject: [PATCH] cosmetic: combine declaration and initialisation Originally committed as revision 9392 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/cutils.c | 3 +-- 1 file changed, 1 insertion(+), 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;