diff --git a/ffserver.c b/ffserver.c index 5f5b37408e9ff0985f9a1b0143302f8f90d87f87..265e3ac579ffa7a80d2f5d7355ac392d19a4bcb4 100644 --- a/ffserver.c +++ b/ffserver.c @@ -3823,11 +3823,8 @@ static int parse_ffconfig(const char *filename) if (!argbuf[0]) break; - if (strlen(argbuf + 1)) { - feed->child_argv[i] = av_malloc(strlen(argbuf + 1)); - strcpy(feed->child_argv[i], argbuf); - } else - feed->child_argv[i] = NULL; + feed->child_argv[i] = av_malloc(strlen(argbuf) + 1); + strcpy(feed->child_argv[i], argbuf); } feed->child_argv[i] = av_malloc(30 + strlen(feed->filename));