diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-05-24 11:21:33 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-05-24 11:21:33 +0000 |
commit | 80ec0b31d1996388744f21d9324bfdc643b6287c (patch) | |
tree | 14886d7aecd74999da9a687481ddae70d6155094 /navit/log.c | |
parent | 612c6b0a37b1b655d883c1314b3fc1f667a05959 (diff) | |
download | navit-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/log.c')
-rw-r--r-- | navit/log.c | 2 |
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); |