summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2005-09-29 03:19:52 +0000
committerjsorg71 <jsorg71>2005-09-29 03:19:52 +0000
commit0d6afdf52fd3f7300ff8c5a2dd5f7c72a005865f (patch)
tree67eb405d48e00c417d5346cbc2f9100a94855a8a /common
parented57c43dc87dff9c0057dbd09805594b2fcc4d40 (diff)
downloadxrdp-proprietary-0d6afdf52fd3f7300ff8c5a2dd5f7c72a005865f.tar.gz
xrdp-proprietary-0d6afdf52fd3f7300ff8c5a2dd5f7c72a005865f.zip
return error if can't find section
Diffstat (limited to 'common')
-rw-r--r--common/file.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/file.c b/common/file.c
index 9b44abc8..fc7e74d9 100644
--- a/common/file.c
+++ b/common/file.c
@@ -167,6 +167,7 @@ file_split_name_value(char* text, char* name, char* value)
}
/*****************************************************************************/
+/* return error */
int APP_CC
file_read_section(int fd, char* section, struct list* names,
struct list* values)
@@ -226,5 +227,5 @@ file_read_section(int fd, char* section, struct list* names,
}
}
free_stream(s);
- return 0;
+ return 1;
}