diff options
Diffstat (limited to 'src/log_targets.h')
-rw-r--r-- | src/log_targets.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/log_targets.h b/src/log_targets.h index 5ee23d4..0ea8e83 100644 --- a/src/log_targets.h +++ b/src/log_targets.h @@ -232,7 +232,7 @@ void log_target_file_open(log_target_t* self) void log_target_file_log(log_target_t* self, log_prio_t prio, const char* msg) { - if(!self || !self->param_) + if(!self || !self->param_ || !self->opened_) return; fprintf(((log_target_file_param_t*)(self->param_))->file_, "%s-%s\n", log_prio_to_string(prio), msg); |