diff options
author | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-20 13:14:09 -0700 |
---|---|---|
committer | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-20 13:14:09 -0700 |
commit | a990287c4627ff6b0d3b6a42b06d1f4ce242d918 (patch) | |
tree | 865e232ed7d8fd0de40a5f88742dcd5ef7f3481a /xrdp/xrdp.c | |
parent | 023c0b5bc1591fad9094d2e440b6315a8ff908d8 (diff) | |
download | xrdp-proprietary-a990287c4627ff6b0d3b6a42b06d1f4ce242d918.tar.gz xrdp-proprietary-a990287c4627ff6b0d3b6a42b06d1f4ce242d918.zip |
coverity: fixed unchecked return value from library
Diffstat (limited to 'xrdp/xrdp.c')
-rw-r--r-- | xrdp/xrdp.c | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/xrdp/xrdp.c b/xrdp/xrdp.c index ba9d02a3..02e94d41 100644 --- a/xrdp/xrdp.c +++ b/xrdp/xrdp.c @@ -538,9 +538,19 @@ main(int argc, char **argv) g_file_close(0); g_file_close(1); g_file_close(2); - g_file_open("/dev/null"); - g_file_open("/dev/null"); - g_file_open("/dev/null"); + + if (g_file_open("/dev/null") < 0) + { + } + + if (g_file_open("/dev/null") < 0) + { + } + + if (g_file_open("/dev/null") < 0) + { + } + /* end of daemonizing code */ } |