summaryrefslogtreecommitdiff
path: root/navit
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-05-24 11:21:33 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-05-24 11:21:33 +0000
commit80ec0b31d1996388744f21d9324bfdc643b6287c (patch)
tree14886d7aecd74999da9a687481ddae70d6155094 /navit
parent612c6b0a37b1b655d883c1314b3fc1f667a05959 (diff)
downloadnavit-80ec0b31d1996388744f21d9324bfdc643b6287c.tar.gz
Fix:Core:Don't crash on failure to open log file
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1077 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit')
-rw-r--r--navit/log.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/navit/log.c b/navit/log.c
index 0101d112c..378b446bc 100644
--- a/navit/log.c
+++ b/navit/log.c
@@ -107,6 +107,8 @@ log_flush(struct log *this_)
return;
log_open(this_);
}
+ if (! this_->f)
+ return;
if (this_->empty) {
if (this_->header.len)
fwrite(this_->header.data, 1, this_->header.len, this_->f);