[FFmpeg-cvslog] r23594 - trunk/libavfilter/parseutils.c
stefano
subversion
Sun Jun 13 11:27:09 CEST 2010
Author: stefano
Date: Sun Jun 13 11:27:09 2010
New Revision: 23594
Log:
Add missing check to av_get_token().
Modified:
trunk/libavfilter/parseutils.c
Modified: trunk/libavfilter/parseutils.c
==============================================================================
--- trunk/libavfilter/parseutils.c Sun Jun 13 11:06:50 2010 (r23593)
+++ trunk/libavfilter/parseutils.c Sun Jun 13 11:27:09 2010 (r23594)
@@ -34,6 +34,7 @@ char *av_get_token(const char **buf, con
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)) {
More information about the ffmpeg-cvslog
mailing list