summaryrefslogtreecommitdiffstats
path: root/eurephia.c
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2008-08-06 16:59:22 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2008-08-06 16:59:22 +0200
commit61ddbd8fc3a2010cd5cda081d2e6a74d685dd051 (patch)
tree0417f2a883515c5b2db784ffb98c30afb71a80e8 /eurephia.c
parent6d4be89186ac368679c77e4fd9e6ee360b028b0d (diff)
downloadeurephia-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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/eurephia.c b/eurephia.c
index c26b669..7006f93 100644
--- a/eurephia.c
+++ b/eurephia.c
@@ -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 {