Don't call file_read_section() on unitialized section name

This can only happen if xrdp.ini is corrupted and has no sections for
backends.
master
Pavel Roskin 8 years ago committed by Jay Sorg
parent b8ed23daab
commit d46a26c1c3

@ -602,6 +602,7 @@ xrdp_wm_init(struct xrdp_wm *self)
/* TODO: change this and have an 'autologin' /* TODO: change this and have an 'autologin'
line in globals section */ line in globals section */
file_read_sections(fd, names); file_read_sections(fd, names);
section_name[0] = '\0';
for (index = 0; index < names->count; index++) for (index = 0; index < names->count; index++)
{ {
q = (char *)list_get_item(names, index); q = (char *)list_get_item(names, index);

Loading…
Cancel
Save