ffserver: fix NULL dereference with quoted Stream name.
authorClément Bœsch <clement.boesch@smartjog.com>
Wed, 14 Nov 2012 09:03:56 +0000 (11:03 +0200)
committerClément Bœsch <ubitux@gmail.com>
Wed, 14 Nov 2012 09:09:57 +0000 (10:09 +0100)
ffserver.c

index 599f9be..18271ce 100644 (file)
@@ -4270,7 +4270,7 @@ static int parse_ffconfig(const char *filename)
                 stream = av_mallocz(sizeof(FFStream));
                 get_arg(stream->filename, sizeof(stream->filename), &p);
                 q = strrchr(stream->filename, '>');
-                if (*q)
+                if (q)
                     *q = '\0';
 
                 for (s = first_stream; s; s = s->next) {