Commit 5ba949fe authored by Stefano Sabatini's avatar Stefano Sabatini

Add missing check to av_get_token().

Originally committed as revision 23594 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 29708427
......@@ -34,6 +34,7 @@ char *av_get_token(const char **buf, const char *term)
char *out = av_malloc(strlen(*buf) + 1);
char *ret= out, *end= out;
const char *p = *buf;
if (!out) return NULL;
p += strspn(p, WHITESPACES);
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