projects
/
libav.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cosmetic: combine declaration and initialisation
[libav.git]
/
libavformat
/
cutils.c
diff --git
a/libavformat/cutils.c
b/libavformat/cutils.c
index
55257a5
..
8580106
100644
(file)
--- 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;