Commit 215bb6e6 authored by vitor's avatar vitor

Proper handling of trailing whitespaces

Commited in SoC by Vitor Sessak on 2008-04-10 21:29:33


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13308 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1d097d94
...@@ -120,6 +120,8 @@ static char *consume_string(const char **buf) ...@@ -120,6 +120,8 @@ static char *consume_string(const char **buf)
case '[': case '[':
case '=': case '=':
case ',': case ',':
case ' ':
case '\n':
*out++= 0; *out++= 0;
break; break;
default: default:
...@@ -128,6 +130,8 @@ static char *consume_string(const char **buf) ...@@ -128,6 +130,8 @@ static char *consume_string(const char **buf)
} while(out[-1]); } while(out[-1]);
(*buf)--; (*buf)--;
consume_whitespace(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