author | Sebastian Harl <sh@tokkee.org> | |
Thu, 20 Mar 2008 10:00:37 +0000 (11:00 +0100) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Sat, 22 Mar 2008 08:30:27 +0000 (09:30 +0100) | ||
commit | 5cc8977fa83ad48de503b0e7d4b3af39f905dce6 | |
tree | c3453f1daa0faf09d9053809a173531a2e804661 | tree | snapshot |
parent | 6ced2e8671ecbba6ad36052fd08edd86ed3577c5 | commit | diff |
configfile.c: Fixed a segfault after a parse error.
In cf_read_generic(), the parse result had not been checked to not be
NULL, which caused a segfault when trying to access any of its members.
Now, an error will be returned in that case.
Also, cf_ci_append_children() has been made more robust in that respect.
It now detects an empty source and does nothing in that case.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
In cf_read_generic(), the parse result had not been checked to not be
NULL, which caused a segfault when trying to access any of its members.
Now, an error will be returned in that case.
Also, cf_ci_append_children() has been made more robust in that respect.
It now detects an empty source and does nothing in that case.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/configfile.c | diff | blob | history |