configfile.c: Fixed Include'ing empty files.
authorSebastian Harl <sh@tokkee.org>
Thu, 28 May 2009 09:15:41 +0000 (11:15 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Thu, 28 May 2009 10:25:05 +0000 (12:25 +0200)
commit1b92a7aa5cb90a36380680d1ee4f68e87896e35f
treedd0a4e0016b9125c687a1362817f31bfeec82169
parent4201b3dd5ddc8cf41fd904625e8716a34a53f420
configfile.c: Fixed Include'ing empty files.

When including empty files, a typo prevented that the "Include" child (of the
config parse tree) was removed correctly, leaving behind garbage which in turn
led to a segfault if the Include option was not the last element of the config
file.

Also, another Include option following the inclusion of an empty file used to
be ignored. This has been fixed as well.
src/configfile.c