diff options
| author | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-19 13:06:25 -0700 |
|---|---|---|
| committer | Laxmikant Rashinkar <LK.Rashinkar@gmail.com> | 2014-07-19 13:06:25 -0700 |
| commit | 73578bc612b63e451a9203f7187f77152d069350 (patch) | |
| tree | 6259b3b95a833e1ad7de288468b24d50e4fc6807 /sesman/sesman.c | |
| parent | 3bb31876e797c7a13b4ffb7d67a5d710cbf4fab3 (diff) | |
| download | xrdp-proprietary-73578bc612b63e451a9203f7187f77152d069350.tar.gz xrdp-proprietary-73578bc612b63e451a9203f7187f77152d069350.zip | |
coverity: fixed unchecked return value
Diffstat (limited to 'sesman/sesman.c')
| -rw-r--r-- | sesman/sesman.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sesman/sesman.c b/sesman/sesman.c index 83db5961..db755a65 100644 --- a/sesman/sesman.c +++ b/sesman/sesman.c @@ -361,7 +361,11 @@ main(int argc, char **argv) /* make sure the /tmp/.X11-unix directory exist */ if (!g_directory_exist("/tmp/.X11-unix")) { - g_create_dir("/tmp/.X11-unix"); + if (!g_create_dir("/tmp/.X11-unix")) + { + log_message(LOG_LEVEL_ERROR, + "sesman.c: error creating dir /tmp/.X11-unix"); + } g_chmod_hex("/tmp/.X11-unix", 0x1777); } |
