changeset 2181:99f7793b7311 libavformat

cosmetic: combine declaration and initialisation
author mru
date Sat, 23 Jun 2007 00:47:27 +0000
parents 6eb481ce83d9
children 0e243c8f88fc
files cutils.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/cutils.c	Sat Jun 23 00:21:06 2007 +0000
+++ b/cutils.c	Sat Jun 23 00:47:27 2007 +0000
@@ -86,8 +86,7 @@
 /* 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;