diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-06-13 09:27:09 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-06-13 09:27:09 +0000 |
commit | 5ba949fe904e7beed2d601ba3664f8da247be703 (patch) | |
tree | 33c5bac4875f6fceb1ab112987f3f060ef2b8bca /libavfilter/parseutils.c | |
parent | 297084275c3ace8624fb61827711d67b6154eaed (diff) | |
download | ffmpeg-5ba949fe904e7beed2d601ba3664f8da247be703.tar.gz |
Add missing check to av_get_token().
Originally committed as revision 23594 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/parseutils.c')
-rw-r--r-- | libavfilter/parseutils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/parseutils.c b/libavfilter/parseutils.c index 9ac61d8073..53f03dccc1 100644 --- a/libavfilter/parseutils.c +++ b/libavfilter/parseutils.c @@ -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)) { |