Commit 6675a5bf authored by Stefano Sabatini's avatar Stefano Sabatini

Statically initialize ffserver.c:config_filename, simplify.

Originally committed as revision 22959 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 931b832a
......@@ -293,7 +293,8 @@ static int rtp_new_av_stream(HTTPContext *c,
static const char *my_program_name;
static const char *my_program_dir;
static const char *config_filename;
static const char *config_filename = "/etc/ffserver.conf";
static int ffserver_debug;
static int ffserver_daemon;
static int no_launch;
......@@ -4647,8 +4648,6 @@ int main(int argc, char **argv)
show_banner();
config_filename = "/etc/ffserver.conf";
my_program_name = argv[0];
my_program_dir = getcwd(0, 0);
ffserver_daemon = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment