summaryrefslogtreecommitdiffstats
path: root/common/file.c
diff options
context:
space:
mode:
authorIdan Freiberg <speidy@gmail.com>2014-07-23 16:44:59 +0300
committerIdan Freiberg <speidy@gmail.com>2014-07-23 16:44:59 +0300
commit16929efb059e1e29c826388e5d57be82014d241b (patch)
treef8661e7495a82a4a73e68825f1a1ff44a9e100f1 /common/file.c
parent0795400fe260652f6ae3788325e2a4c8ee05fe3a (diff)
parent0c63a8feb3c52de98a5da51a0a0f743450c34645 (diff)
downloadxrdp-proprietary-16929efb059e1e29c826388e5d57be82014d241b.tar.gz
xrdp-proprietary-16929efb059e1e29c826388e5d57be82014d241b.zip
Merge branch 'devel' of https://github.com/neutrinolabs/xrdp into
devel Conflicts: libxrdp/xrdp_sec.c
Diffstat (limited to 'common/file.c')
-rw-r--r--common/file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/file.c b/common/file.c
index a9a06de9..b51a37cc 100644
--- a/common/file.c
+++ b/common/file.c
@@ -233,7 +233,7 @@ l_file_read_section(int fd, int max_file_size, const char *section,
int len;
int index;
int file_size;
-
+
data = (char *) g_malloc(FILE_MAX_LINE_BYTES * 3, 0);
text = data;
name = text + FILE_MAX_LINE_BYTES;
@@ -364,7 +364,7 @@ file_by_name_read_sections(const char *file_name, struct list *names)
fd = g_file_open(file_name);
- if (fd < 1)
+ if (fd < 0)
{
return 1;
}
@@ -405,7 +405,7 @@ file_by_name_read_section(const char *file_name, const char *section,
fd = g_file_open(file_name);
- if (fd < 1)
+ if (fd < 0)
{
return 1;
}