Commit a64821f4 authored by Vitor Sessak's avatar Vitor Sessak
Browse files

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