diff options
-rw-r--r-- | lib/log/log.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/log/log.c b/lib/log/log.c index a439d1da3..3a8f4efac 100644 --- a/lib/log/log.c +++ b/lib/log/log.c @@ -82,7 +82,10 @@ void init_log_file(const char *log_file, int append) log_warn("WARNING: Ignoring invalid LVM_LOG_FILE_EPOCH envvar \"%s\".", env); goto no_epoch; } - + if (!i) { + log_debug("Empty LVM_LOG_FILE_EPOCH envvar set."); + goto no_epoch; + } if (!(st = fopen(statfile, "r"))) log_sys_error("fopen", statfile); else if (fscanf(st, "%d %*s %*c %*d %*d %*d %*d " /* tty_nr */ |