Signed-off-by: Karel Zak <kzak@redhat.com>
const char *filename;
FILE *fp;
- unsigned int noseek; /* do not seek in this log */
+ unsigned int noseek : 1; /* do not seek in this log */
};
struct replay_step {
log = &stp->logs[stp->nlogs];
stp->nlogs++;
+ memset(log, 0, sizeof(*log));
log->filename = filename;
log->streams = streams;
log->fp = f;
{
if (log->noseek)
return 0;
-
DBG(LOG, ul_debug(" %s: seek ++ %zu", log->filename, move));
return fseek(log->fp, move, SEEK_CUR) == (off_t) -1 ? -errno : 0;
}