diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2008-05-16 20:27:48 +0200 |
---|---|---|
committer | Brice Goglin <bgoglin@debian.org> | 2008-05-16 20:28:11 +0200 |
commit | 4a163a076e90808fa47ade1504fd0f2893bdc306 (patch) | |
tree | 60090e488189c8de8186f5591b0bfa43a1da7fe4 | |
parent | 6188cb8538b713296266238b7b780718fcec881b (diff) |
Return an error to the log instead of segfaultingxfs-1.0.7
Return an error to the log instead of segfaulting
if catalogue line is omitted from config file.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=148650
-rw-r--r-- | os/config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/os/config.c b/os/config.c index 4623390..1efa2f2 100644 --- a/os/config.c +++ b/os/config.c @@ -296,6 +296,10 @@ SetConfigValues(void) int err, num; + if (font_catalogue = NULL) { + FatalError("font catalogue is missing/empty\n"); + } + err = SetFontCatalogue(font_catalogue, &num); if (err != FSSuccess) { FatalError("element #%d (starting at 0) of font path is bad or has a bad font:\n\"%s\"\n", |