diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2008-08-06 16:59:22 +0200 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2008-08-06 16:59:22 +0200 |
commit | 61ddbd8fc3a2010cd5cda081d2e6a74d685dd051 (patch) | |
tree | 0417f2a883515c5b2db784ffb98c30afb71a80e8 /eurephia.c | |
parent | 6d4be89186ac368679c77e4fd9e6ee360b028b0d (diff) | |
download | eurephia-61ddbd8fc3a2010cd5cda081d2e6a74d685dd051.tar.gz eurephia-61ddbd8fc3a2010cd5cda081d2e6a74d685dd051.tar.xz eurephia-61ddbd8fc3a2010cd5cda081d2e6a74d685dd051.zip |
BUGFIX: Hopefully the core dump on unopened log file is fixed
Diffstat (limited to 'eurephia.c')
-rw-r--r-- | eurephia.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -112,8 +112,10 @@ eurephiaCTX *eurephiaInit(const char **argv) } if( error > 0 ) { - eurephia_log(ctx, LOG_PANIC, 0, "eurephia-auth is not available"); - fclose(ctx->log); + if( ctx->log != NULL ) { + eurephia_log(ctx, LOG_PANIC, 0, "eurephia-auth is not available"); + fclose(ctx->log); + } free_nullsafe(ctx); ctx = NULL; } else { |