Commit 37fdca06 authored by bcoudurier's avatar bcoudurier

fix open return check

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13858 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e7801a91
...@@ -392,13 +392,13 @@ static void start_children(FFStream *feed) ...@@ -392,13 +392,13 @@ static void start_children(FFStream *feed)
if (!ffserver_debug) { if (!ffserver_debug) {
i = open("/dev/null", O_RDWR); i = open("/dev/null", O_RDWR);
if (i) if (i != -1) {
dup2(i, 0); dup2(i, 0);
dup2(i, 1); dup2(i, 1);
dup2(i, 2); dup2(i, 2);
if (i)
close(i); close(i);
} }
}
av_strlcpy(pathname, my_program_name, sizeof(pathname)); av_strlcpy(pathname, my_program_name, sizeof(pathname));
......
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