1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

Remove unneeded var

Commited in SoC by Vitor Sessak on 2008-04-10 21:26:45

Originally committed as revision 13307 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Vitor Sessak 2008-05-24 20:39:51 +00:00
parent 89475efd26
commit a64821f4e5

View File

@ -100,21 +100,20 @@ static void consume_whitespace(const char **buf)
static char *consume_string(const char **buf)
{
char *out = av_malloc(strlen(*buf) + 1);
const char *in = *buf;
char *ret = out;
consume_whitespace(buf);
do{
char c = *in++;
char c = *(*buf)++;
switch (c) {
case '\\':
*out++= *in++;
*out++= *(*buf)++;
break;
case '\'':
while(*in && *in != '\'')
*out++= *in++;
if(*in) in++;
while(**buf && **buf != '\'')
*out++= *(*buf)++;
if(**buf) (*buf)++;
break;
case 0:
case ']':
@ -128,7 +127,7 @@ static char *consume_string(const char **buf)
}
} while(out[-1]);
*buf = in-1;
(*buf)--;
return ret;
}