diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-06-21 05:35:05 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-06-21 05:35:05 +0000 |
| commit | dc92dbfc56e2801233d6c7a21bc07f8763d9cc67 (patch) | |
| tree | 5ca6a487518ade290b6e42bc2e02f265a94a9f46 /render/font.c | |
| parent | b3e9fea103cc6220fa66312fa9f53f8d3b6427ca (diff) | |
don't exit in the render lib, rather return a NULL font/theme on failure
Diffstat (limited to 'render/font.c')
| -rw-r--r-- | render/font.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/render/font.c b/render/font.c index 592ced6f..b9a17b48 100644 --- a/render/font.c +++ b/render/font.c @@ -23,7 +23,7 @@ static void font_startup(void) #endif /* DEBUG */ if (!XftInit(0)) { g_warning(_("Couldn't initialize Xft.\n")); - exit(3); + exit(EXIT_FAILURE); } #ifdef DEBUG version = XftGetVersion(); @@ -71,9 +71,8 @@ RrFont *RrFontOpen(const RrInstance *inst, char *fontstring) return out; } g_warning(_("Unable to load font: %s\n"), "sans"); - g_warning(_("Aborting!.\n")); - exit(3); /* can't continue without a font */ + return NULL; } void RrFontClose(RrFont *f) |
