Commit 1d097d94 authored by vitor's avatar vitor

Remove unneeded var

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13307 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b30380a5
......@@ -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;
}
......
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