Commit 315a2858 authored by Måns Rullgård's avatar Måns Rullgård

cosmetic: combine declaration and initialisation

Originally committed as revision 9392 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 26301cb8
...@@ -86,8 +86,7 @@ void pstrcpy(char *buf, int buf_size, const char *str) ...@@ -86,8 +86,7 @@ void pstrcpy(char *buf, int buf_size, const char *str)
/* strcat and truncate. */ /* strcat and truncate. */
char *pstrcat(char *buf, int buf_size, const char *s) char *pstrcat(char *buf, int buf_size, const char *s)
{ {
int len; int len = strlen(buf);
len = strlen(buf);
if (len < buf_size) if (len < buf_size)
pstrcpy(buf + len, buf_size - len, s); pstrcpy(buf + len, buf_size - len, s);
return buf; return buf;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment