Commit 7f00882d authored by stefano's avatar stefano

Add missing check to av_get_token().

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23594 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c4c747d2
...@@ -34,6 +34,7 @@ char *av_get_token(const char **buf, const char *term) ...@@ -34,6 +34,7 @@ char *av_get_token(const char **buf, const char *term)
char *out = av_malloc(strlen(*buf) + 1); char *out = av_malloc(strlen(*buf) + 1);
char *ret= out, *end= out; char *ret= out, *end= out;
const char *p = *buf; const char *p = *buf;
if (!out) return NULL;
p += strspn(p, WHITESPACES); p += strspn(p, WHITESPACES);
while(*p && !strspn(p, term)) { while(*p && !strspn(p, term)) {
......
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