Skip to content
Snippets Groups Projects
Commit 5ba949fe authored by Stefano Sabatini's avatar Stefano Sabatini
Browse files

Add missing check to av_get_token().

Originally committed as revision 23594 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 29708427
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment