Merge branch 'lintian-manpage-fixes' of https://github.com/hoexter/fio
[fio.git] / stat.c
diff --git a/stat.c b/stat.c
index 949af5edd49ffa05dfa16bbef70c7d1037de8261..b963973a5824c09663917e994bda0a7f6cb21145 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -2870,7 +2870,10 @@ static struct io_logs *get_new_log(struct io_log *iolog)
         * forever
         */
        if (!iolog->cur_log_max) {
-               new_samples = iolog->td->o.log_entries;
+               if (iolog->td)
+                       new_samples = iolog->td->o.log_entries;
+               else
+                       new_samples = DEF_LOG_ENTRIES;
        } else {
                new_samples = iolog->cur_log_max * 2;
                if (new_samples > MAX_LOG_ENTRIES)